bug #13642 [Translator][Logging] implement TranslatorBagInterface. (aitboudad)

This PR was merged into the 2.6 branch.

Discussion
----------

[Translator][Logging] implement TranslatorBagInterface.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #13632
| Tests pass?   | yes
| License       | MIT

Commits
-------

dcb2306 [Translator][Logging] implement TranslatorBagInterface.
This commit is contained in:
Fabien Potencier 2015-02-10 15:54:53 +01:00
commit 85c7195ad7

View File

@ -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.
*/