You are here

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\Translation

Code

public function addLoader($format, LoaderInterface $loader) {
  $this->loaders[$format] = $loader;
}