Skip to content

Commit 779db9d

Browse files
Merge branch '6.4' into 7.0
* 6.4: Fix AssetMapper tests (+ dependencies) [FrameworkBundle] Fix requiring moved translation compiler passes
2 parents 79367fc + 32fc911 commit 779db9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FrameworkBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function build(ContainerBuilder $container): void
132132
$container->addCompilerPass(new RegisterControllerArgumentLocatorsPass());
133133
$container->addCompilerPass(new RemoveEmptyControllerArgumentLocatorsPass(), PassConfig::TYPE_BEFORE_REMOVING);
134134
$container->addCompilerPass(new RoutingResolverPass());
135-
$container->addCompilerPass(new DataCollectorTranslatorPass());
135+
$this->addCompilerPassIfExists($container, DataCollectorTranslatorPass::class);
136136
$container->addCompilerPass(new ProfilerPass());
137137
// must be registered before removing private services as some might be listeners/subscribers
138138
// but as late as possible to get resolved parameters
@@ -144,7 +144,7 @@ public function build(ContainerBuilder $container): void
144144
// twig.template_iterator definition
145145
$this->addCompilerPassIfExists($container, TranslatorPass::class, PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
146146
$this->addCompilerPassIfExists($container, TranslatorPathsPass::class, PassConfig::TYPE_AFTER_REMOVING);
147-
$container->addCompilerPass(new LoggingTranslatorPass());
147+
$this->addCompilerPassIfExists($container, LoggingTranslatorPass::class);
148148
$container->addCompilerPass(new AddExpressionLanguageProvidersPass());
149149
$this->addCompilerPassIfExists($container, TranslationExtractorPass::class);
150150
$this->addCompilerPassIfExists($container, TranslationDumperPass::class);

0 commit comments

Comments
 (0)