From fd27801cf1150f80839f5930a7b1faa9aef22369 Mon Sep 17 00:00:00 2001 From: JhonnyL Date: Tue, 23 Aug 2016 15:45:05 +0200 Subject: [PATCH] [FrameworkBundle] Remove TranslatorBagInterface check --- .../DependencyInjection/Compiler/LoggingTranslatorPass.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php index dda6bc2959..74d586bf3b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/LoggingTranslatorPass.php @@ -26,11 +26,6 @@ class LoggingTranslatorPass implements CompilerPassInterface return; } - // skip if the symfony/translation version is lower than 2.6 - if (!interface_exists('Symfony\Component\Translation\TranslatorBagInterface')) { - return; - } - if ($container->hasParameter('translator.logging') && $container->getParameter('translator.logging')) { $translatorAlias = $container->getAlias('translator'); $definition = $container->getDefinition((string) $translatorAlias);