mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Fix potential resolve() helper function conflict (#218)
This commit is contained in:
committed by
Taylor Otwell
parent
e965fac863
commit
bb19f85748
@@ -46,15 +46,17 @@ function output($output)
|
||||
(new Symfony\Component\Console\Output\ConsoleOutput)->writeln($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve the given class from the container.
|
||||
*
|
||||
* @param string $class
|
||||
* @return mixed
|
||||
*/
|
||||
function resolve($class)
|
||||
{
|
||||
return Container::getInstance()->make($class);
|
||||
if (! function_exists('resolve')) {
|
||||
/**
|
||||
* Resolve the given class from the container.
|
||||
*
|
||||
* @param string $class
|
||||
* @return mixed
|
||||
*/
|
||||
function resolve($class)
|
||||
{
|
||||
return Container::getInstance()->make($class);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user