Class

Symfony\Component\Translation\Dumper\JsonFileDumper

class JsonFileDumper extends FileDumper

JsonFileDumper generates an json formatted string representation of a message catalogue.

Methods

setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

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

Dumps the message catalogue.

from FileDumper
format(MessageCatalogue $messages, $domain = 'messages')

{@inheritdoc}

Details

in FileDumper at line 39
public setRelativePathTemplate(string $relativePathTemplate)

Sets the template for the relative paths to files.

Parameters

string $relativePathTemplate A template for the relative paths to files

in FileDumper at line 47
public 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

at line 30
public format(MessageCatalogue $messages, $domain = 'messages')

{@inheritdoc}

Parameters

MessageCatalogue $messages
$domain