8000 bug #25914 [HttpKernel] collect extension information as late as poss… · symfony/symfony@f284004 · GitHub
[go: up one dir, main page]

Skip to content

Commit f284004

Browse files
committed
bug #25914 [HttpKernel] collect extension information as late as possible (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] collect extension information as late as possible | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25660 | License | MIT | Doc PR | Commits ------- 58cdbd0 collect extension information as late as possible
2 parents 6cfcfae + 58cdbd0 commit f284004

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
@@ -790,7 +790,6 @@ protected function prepareContainer(ContainerBuilder $container)
790790
foreach ($this->bundles as $bundle) {
791791
if ($extension = $bundle->getContainerExtension()) {
792792
$container->registerExtension($extension);
793-
$extensions[] = $extension->getAlias();
794793
}
795794

796795
if ($this->debug) {
@@ -804,6 +803,10 @@ protected function prepareContainer(ContainerBuilder $container)
804803

805804
$this->build($container);
806805

806+
foreach ($container->getExtensions() as $extension) {
807+
$extensions[] = $extension->getAlias();
808+
}
809+
807810
// ensure these extensions are implicitly loaded
808811
$container->getCompilerPassConfig()->setMergePass(new MergeExtensionConfigurationPass($extensions));
809812
}

0 commit comments

Comments
 (0)
0