added getLoaders() method

This commit is contained in:
Nicolas Talle 2013-09-10 19:47:19 +02:00 committed by Fabien Potencier
parent e24dbf7cba
commit 6cb4c7c70e

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 {