Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88017ff

Browse filesBrowse files
[FrameworkBundle] Fix compiler passes processing a container twice when it's loaded from the debug dump
1 parent 4ae613e commit 88017ff
Copy full SHA for 88017ff

File tree

2 files changed

+6
-0
lines changed
Filter options

2 files changed

+6
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/BuildDebugContainerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/BuildDebugContainerTrait.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ protected function getContainerBuilder(KernelInterface $kernel): ContainerBuilde
5353
(new XmlFileLoader($container = new ContainerBuilder(), new FileLocator()))->load($kernel->getContainer()->getParameter('debug.container.dump'));
5454
$locatorPass = new ServiceLocatorTagPass();
5555
$locatorPass->process($container);
56+
57+
$container->getCompilerPassConfig()->setBeforeOptimizationPasses([]);
58+
$container->getCompilerPassConfig()->setOptimizationPasses([]);
5659
}
5760

5861
return $this->containerBuilder = $container;

‎src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ private function getContainerBuilder(): ContainerBuilder
118118
$skippedIds[$serviceId] = true;
119119
}
120120
}
121+
122+
$container->getCompilerPassConfig()->setBeforeOptimizationPasses([]);
123+
$container->getCompilerPassConfig()->setOptimizationPasses([]);
121124
}
122125

123126
$container->setParameter('container.build_hash', 'lint_container');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.