diff --git a/core/Console.php b/core/Console.php index 9f1ef79a41a4f6d6256882c5fedb22b86f7676ce..423c06d7713efddaa670a3a1addce4d4c3d28105 100644 --- a/core/Console.php +++ b/core/Console.php @@ -55,8 +55,9 @@ class Console extends Application $this->addCommandIfExists($command); } - return Access::doAsSuperUser(function () use ($input, $output) { - return Application::doRun($input, $output); + $self = $this; + return Access::doAsSuperUser(function () use ($input, $output, $self) { + return call_user_func(array($self, 'Symfony\Component\Console\Application::doRun'), $input, $output); }); }