Skip to content

Commit

Permalink
[Translator][Logging] implement TranslatorBagInterface.
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad committed Feb 10, 2015
1 parent 8b10043 commit dcb2306
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Symfony/Component/Translation/LoggingTranslator.php
Expand Up @@ -16,7 +16,7 @@
/**
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
*/
class LoggingTranslator implements TranslatorInterface
class LoggingTranslator implements TranslatorInterface, TranslatorBagInterface
{
/**
* @var TranslatorInterface
Expand Down Expand Up @@ -84,6 +84,14 @@ public function 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.
*/
Expand Down

0 comments on commit dcb2306

Please sign in to comment.