Skip to content

Commit 58cdbd0

Browse files
committed
collect extension information as late as possible
1 parent af4b469 commit 58cdbd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,6 @@ protected function prepareContainer(ContainerBuilder $container)
700700
foreach ($this->bundles as $bundle) {
701701
if ($extension = $bundle->getContainerExtension()) {
702702
$container->registerExtension($extension);
703-
$extensions[] = $extension->getAlias();
704703
}
705704

706705
if ($this->debug) {
@@ -714,6 +713,10 @@ protected function prepareContainer(ContainerBuilder $container)
714713

715714
$this->build($container);
716715

716+
foreach ($container->getExtensions() as $extension) {
717+
$extensions[] = $extension->getAlias();
718+
}
719+
717720
// ensure these extensions are implicitly loaded
718721
$container->getCompilerPassConfig()->setMergePass(new MergeExtensionConfigurationPass($extensions));
719722
}

0 commit comments

Comments
 (0)