From 040edfec4a1b32b5cc5198bd4e4e8110697865ea Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Mon, 8 May 2017 10:50:08 +0200 Subject: [PATCH] [FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice --- .../Bundle/FrameworkBundle/Command/AbstractConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php index 6afe16a8d2..4e729298c1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php @@ -95,7 +95,7 @@ abstract class AbstractConfigCommand extends ContainerDebugCommand // Re-build bundle manually to initialize DI extensions that can be extended by other bundles in their build() method // as this method is not called when the container is loaded from the cache. $container = $this->getContainerBuilder(); - $bundles = $this->getContainer()->get('kernel')->registerBundles(); + $bundles = $this->getContainer()->get('kernel')->getBundles(); foreach ($bundles as $bundle) { if ($extension = $bundle->getContainerExtension()) { $container->registerExtension($extension);