FileDumper
abstract class FileDumper implements DumperInterface
FileDumper is an implementation of DumperInterface that dump a message catalogue to file(s).
Options: - path (mandatory): the directory where the files should be saved
Properties
protected string | $relativePathTemplate | A template for the relative paths to files. |
Methods
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.
string
getExtension()
Gets the file extension of the dumper.
Details
setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
abstract string
formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.