From 24a07fbab80ca7cd655f793a1f7fedcb0f92c3b8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 13 Jun 2013 09:07:59 +0200 Subject: [PATCH] [FrameworkBundle] tweaked previous merge (refs #8242) --- src/Symfony/Bundle/FrameworkBundle/Console/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php index 6df31ae69b..695c819015 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Application.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Application.php @@ -68,6 +68,8 @@ class Application extends BaseApplication { if (!$this->commandsRegistered) { $this->registerCommands(); + + $this->commandsRegistered = true; } if (true === $input->hasParameterOption(array('--shell', '-s'))) { @@ -90,7 +92,5 @@ class Application extends BaseApplication $bundle->registerCommands($this); } } - - $this->commandsRegistered = true; } }