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
-------
58cdbd03e1
collect extension information as late as possible
This commit is contained in:
commit
f284004f8d
@ -790,7 +790,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
foreach ($this->bundles as $bundle) {
|
foreach ($this->bundles as $bundle) {
|
||||||
if ($extension = $bundle->getContainerExtension()) {
|
if ($extension = $bundle->getContainerExtension()) {
|
||||||
$container->registerExtension($extension);
|
$container->registerExtension($extension);
|
||||||
$extensions[] = $extension->getAlias();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->debug) {
|
if ($this->debug) {
|
||||||
@ -804,6 +803,10 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
|
|
||||||
$this->build($container);
|
$this->build($container);
|
||||||
|
|
||||||
|
foreach ($container->getExtensions() as $extension) {
|
||||||
|
$extensions[] = $extension->getAlias();
|
||||||
|
}
|
||||||
|
|
||||||
// ensure these extensions are implicitly loaded
|
// ensure these extensions are implicitly loaded
|
||||||
$container->getCompilerPassConfig()->setMergePass(new MergeExtensionConfigurationPass($extensions));
|
$container->getCompilerPassConfig()->setMergePass(new MergeExtensionConfigurationPass($extensions));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user