You are here

public function Translator::addLoader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Translator.php \Symfony\Component\Translation\Translator::addLoader()

Adds a Loader.

Parameters

string $format The name of the loader (@see addResource()):

LoaderInterface $loader A LoaderInterface instance:

File

vendor/symfony/translation/Translator.php, line 106

Class

Translator
Translator.

Namespace

Symfony\Component\Translation

Code

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