feature#9147 [Translator] added getLoaders() method (fabpot)

This PR was merged into the master branch.

Discussion
----------

[Translator] added getLoaders() method

see #8984

Commits
-------

6cb4c7c added getLoaders() method
This commit is contained in:
Fabien Potencier 2013-09-27 14:34:27 +02:00
commit 21bddb83c1

View File

@ -222,6 +222,16 @@ class Translator implements TranslatorInterface
return strtr($this->selector->choose($catalogue->get($id, $domain), (int) $number, $locale), $parameters);
}
/**
* Gets the loaders.
*
* @return array LoaderInterface[]
*/
protected function getLoaders()
{
return $this->loaders;
}
protected function loadCatalogue($locale)
{
try {