Skip to content

Commit

Permalink
[FrameworkBundle] AbstractConfigCommand: do not try registering bundl…
Browse files Browse the repository at this point in the history
…es twice
  • Loading branch information
ogizanagi committed May 8, 2017
1 parent 62cb443 commit 040edfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private function initializeBundles()
// 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);
Expand Down

0 comments on commit 040edfe

Please sign in to comment.