collect extension information as late as possible
This commit is contained in:
parent
af4b46995c
commit
58cdbd03e1
@ -700,7 +700,6 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
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) {
|
||||||
@ -714,6 +713,10 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
|
|
||||||
$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