[Translator][Logging] implement TranslatorBagInterface.
This commit is contained in:
parent
8b10043dad
commit
dcb2306d03
@ -16,7 +16,7 @@ use Psr\Log\LoggerInterface;
|
||||
/**
|
||||
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user