public function Translator::addLoader in Plug 7
Adds a Loader.
@api
Parameters
string $format The name of the loader (@see addResource()):
LoaderInterface $loader A LoaderInterface instance:
File
- lib/
Symfony/ translation/ Translator.php, line 112
Class
- Translator
- Translator.
Namespace
Symfony\Component\TranslationCode
public function addLoader($format, LoaderInterface $loader) {
$this->loaders[$format] = $loader;
}