You are here

public function TranslationWriter::addDumper in Plug 7

Adds a dumper to the writer.

Parameters

string $format The format of the dumper:

DumperInterface $dumper The dumper:

File

lib/Symfony/translation/Writer/TranslationWriter.php, line 37

Class

TranslationWriter
TranslationWriter writes translation messages.

Namespace

Symfony\Component\Translation\Writer

Code

public function addDumper($format, DumperInterface $dumper) {
  $this->dumpers[$format] = $dumper;
}