Skip to content

Commit 040edfe

Browse files
committed
[FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice
1 parent 62cb443 commit 040edfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function initializeBundles()
9595
// Re-build bundle manually to initialize DI extensions that can be extended by other bundles in their build() method
9696
// as this method is not called when the container is loaded from the cache.
9797
$container = $this->getContainerBuilder();
98-
$bundles = $this->getContainer()->get('kernel')->registerBundles();
98+
$bundles = $this->getContainer()->get('kernel')->getBundles();
9999
foreach ($bundles as $bundle) {
100100
if ($extension = $bundle->getContainerExtension()) {
101101
$container->registerExtension($extension);

0 commit comments

Comments
 (0)