[Translator][Logging] implement TranslatorBagInterface.

This commit is contained in:
Abdellatif Ait boudad 2015-02-10 13:48:21 +00:00
parent 8b10043dad
commit dcb2306d03

View File

@ -16,7 +16,7 @@ use Psr\Log\LoggerInterface;
/** /**
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com> * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
*/ */
class LoggingTranslator implements TranslatorInterface class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface
{ {
/** /**
* @var TranslatorInterface * @var TranslatorInterface
@ -84,6 +84,14 @@ class LoggingTranslator implements TranslatorInterface
return $this->translator->getLocale(); return $this->translator->getLocale();
} }
/**
* {@inheritdoc}
*/
public function getCatalogue($locale = null)
{
return $this->translator->getCatalogue($locale);
}
/** /**
* Passes through all unknown calls onto the translator object. * Passes through all unknown calls onto the translator object.
*/ */