FileDumper
class FileDumper implements DumperInterface
FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s).
Performs backup of already existing files.
Options: - path (mandatory): the directory where the files should be saved
Methods
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
setBackup(bool $backup)
Sets backup flag.
string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.
Details
at line line 46
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
at line line 56
setBackup(bool $backup)
Sets backup flag.
at line line 64
dump(MessageCatalogue $messages, array $options = array())
Dumps the message catalogue.
at line line 98
abstract string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.