diff --git a/cli/includes/facades.php b/cli/includes/facades.php index 2488185..737d997 100644 --- a/cli/includes/facades.php +++ b/cli/includes/facades.php @@ -1,5 +1,7 @@ make(static::containerKey()); + + return call_user_func_array([$resolvedInstance, $method], $parameters); } } diff --git a/cli/includes/helpers.php b/cli/includes/helpers.php index 66322ab..34b4400 100644 --- a/cli/includes/helpers.php +++ b/cli/includes/helpers.php @@ -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); + } } /**