We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a2bb1 commit 1eed13fCopy full SHA for 1eed13f
src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php
@@ -189,7 +189,7 @@ public function build(ContainerBuilder $container): void
189
$container->addCompilerPass(new ErrorLoggerCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
190
$container->addCompilerPass(new VirtualRequestStackPass());
191
$container->addCompilerPass(new TranslationUpdateCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
192
- $container->addCompilerPass(new EncodablePass());
+ $this->addCompilerPassIfExists($container, EncodablePass::class);
193
194
if ($container->getParameter('kernel.debug')) {
195
$container->addCompilerPass(new AddDebugLogProcessorPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 2);
0 commit comments