diff --git a/Console/Application.php b/Console/Application.php index 224dbea2e..02fda3e1b 100644 --- a/Console/Application.php +++ b/Console/Application.php @@ -100,16 +100,16 @@ protected function registerCommands() { $container = $this->kernel->getContainer(); - if ($container->hasParameter('console.command.ids')) { - foreach ($container->getParameter('console.command.ids') as $id) { - $this->add($container->get($id)); - } - } - foreach ($this->kernel->getBundles() as $bundle) { if ($bundle instanceof Bundle) { $bundle->registerCommands($this); } } + + if ($container->hasParameter('console.command.ids')) { + foreach ($container->getParameter('console.command.ids') as $id) { + $this->add($container->get($id)); + } + } } }