skip if param "translator.logging" doesn't exist.
This commit is contained in:
parent
acb1b85b98
commit
10089914c6
@ -30,7 +30,7 @@ class LoggingTranslatorPass implements CompilerPassInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if ($container->getParameter('translator.logging')) {
|
||||
if ($container->hasParameter('translator.logging') && $container->getParameter('translator.logging')) {
|
||||
$translatorAlias = $container->getAlias('translator');
|
||||
$definition = $container->getDefinition((string) $translatorAlias);
|
||||
$class = $container->getParameterBag()->resolveValue($definition->getClass());
|
||||
|
Reference in New Issue
Block a user