diff options
-rw-r--r-- | core/Console.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Console.php b/core/Console.php index 9f1ef79a41..423c06d771 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); }); } |