8000 bug #13047 [FrameworkBundle][Logging Translator] skip if param "trans… · symfony/symfony@13495c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13495c2

Browse files
committed
bug #13047 [FrameworkBundle][Logging Translator] skip if param "translator.logging" doesn't exist. (aitboudad)
This PR was merged into the 2.6 branch. Discussion ---------- [FrameworkBundle][Logging Translator] skip if param "translator.logging" doesn't exist. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | #12989 | Tests pass? | yes | License | MIT Commits ------- 1008991 skip if param "translator.logging" doesn't exist.
2 parents b443459 + 1008991 commit 13495c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function process(ContainerBuilder $container)
3030
return;
3131
}
3232

33-
if ($container->getParameter('translator.logging')) {
33+
if ($container->hasParameter('translator.logging') && $container->getParameter('translator.logging')) {
3434
$translatorAlias = $container->getAlias('translator');
3535
$definition = $container->getDefinition((string) $translatorAlias);
3636
$class = $container->getParameterBag()->resolveValue($definition->getClass());

0 commit comments

Comments
 (0)
0