From dcb2306d03560c259fd0cd4a532b53fdb62c6414 Mon Sep 17 00:00:00 2001 From: Abdellatif Ait boudad Date: Tue, 10 Feb 2015 13:48:21 +0000 Subject: [PATCH] [Translator][Logging] implement TranslatorBagInterface. --- .../Component/Translation/LoggingTranslator.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Translation/LoggingTranslator.php b/src/Symfony/Component/Translation/LoggingTranslator.php index a5d244a1e2..851188230b 100644 --- a/src/Symfony/Component/Translation/LoggingTranslator.php +++ b/src/Symfony/Component/Translation/LoggingTranslator.php @@ -16,7 +16,7 @@ use Psr\Log\LoggerInterface; /** * @author Abdellatif Ait boudad */ -class LoggingTranslator implements TranslatorInterface +class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface { /** * @var TranslatorInterface @@ -84,6 +84,14 @@ class LoggingTranslator implements TranslatorInterface return $this->translator->getLocale(); } + /** + * {@inheritdoc} + */ + public function getCatalogue($locale = null) + { + return $this->translator->getCatalogue($locale); + } + /** * Passes through all unknown calls onto the translator object. */