From d2a058f665e979821ce21f63596b07fa3d75173f Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen Date: Wed, 25 Nov 2015 14:17:37 +0000 Subject: [PATCH] Set shell command 'main' before running startUp --- src/Console/Shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Shell.php b/src/Console/Shell.php index 07c961ab3f2..6da26422f4f 100644 --- a/src/Console/Shell.php +++ b/src/Console/Shell.php @@ -443,8 +443,8 @@ public function runCommand($argv, $autoMethod = false, $extra = []) } if ($this->hasMethod('main')) { - $this->startup(); $this->command = 'main'; + $this->startup(); return call_user_func_array([$this, 'main'], $this->args); }