[FrameworkBundle] tweaked previous merge (refs #8242)

This commit is contained in:
Fabien Potencier 2013-06-13 09:07:59 +02:00
parent 3b068378e8
commit 24a07fbab8
1 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,8 @@ class Application extends BaseApplication
{ {
if (!$this->commandsRegistered) { if (!$this->commandsRegistered) {
$this->registerCommands(); $this->registerCommands();
$this->commandsRegistered = true;
} }
if (true === $input->hasParameterOption(array('--shell', '-s'))) { if (true === $input->hasParameterOption(array('--shell', '-s'))) {
@ -90,7 +92,5 @@ class Application extends BaseApplication
$bundle->registerCommands($this); $bundle->registerCommands($this);
} }
} }
$this->commandsRegistered = true;
} }
} }