YamlFileDumper

class YamlFileDumper extends FileDumper

YamlFileDumper generates yaml files from a message catalogue.

Methods

setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

from FileDumper
setBackup(bool $backup)

Sets backup flag.

from FileDumper
dump(MessageCatalogue $messages, array $options = array())

Dumps the message catalogue.

from FileDumper

Details

setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

Parameters

string $relativePathTemplate A template for the relative paths to files

setBackup(bool $backup)

Sets backup flag.

Parameters

bool $backup

dump(MessageCatalogue $messages, array $options = array())

Dumps the message catalogue.

Parameters

MessageCatalogue $messages The message catalogue
array $options Options that are used by the dumper

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Translation/Dumper/YamlFileDumper.html