diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php index 6df31ae69b52..695c819015c0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php @@ -68,6 +68,8 @@ public function doRun(InputInterface $input, OutputInterface $output) { if (!$this->commandsRegistered) { $this->registerCommands(); + + $this->commandsRegistered = true; } if (true === $input->hasParameterOption(array('--shell', '-s'))) { @@ -90,7 +92,5 @@ protected function registerCommands() $bundle->registerCommands($this); } } - - $this->commandsRegistered = true; } }