*/ class TranslationWriter implements TranslationWriterInterface { private $dumpers = []; /** * Adds a dumper to the writer. * * @param string $format The format of the dumper */ public function addDumper($format, DumperInterface $dumper) { $this->dumpers[$format] = $dumper; } /** * Disables dumper backup. * * @deprecated since Symfony 4.1 */ public function disableBackup() { @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1.', __METHOD__), \E_USER_DEPRECATED); foreach ($this->dumpers as $dumper) { if (method_exists($dumper, 'setBackup')) { $dumper->setBackup(false); } } } /** * Obtains the list of supported formats. * * @return array */ public function getFormats() { return array_keys($this->dumpers); } /** * Writes translation from the catalogue according to the selected format. * * @param string $format The format to use to dump the messages * @param array $options Options that are passed to the dumper * * @throws InvalidArgumentException */ public function write(MessageCatalogue $catalogue, $format, $options = []) { if (!isset($this->dumpers[$format])) { throw new InvalidArgumentException(sprintf('There is no dumper associated with format "%s".', $format)); } // get the right dumper $dumper = $this->dumpers[$format]; if (isset($options['path']) && !is_dir($options['path']) && !@mkdir($options['path'], 0777, true) && !is_dir($options['path'])) { throw new RuntimeException(sprintf('Translation Writer was not able to create directory "%s".', $options['path'])); } // save $dumper->dump($catalogue, $options); } } __halt_compiler();----SIGNATURE:----jE5bgYbn6MoUfFmkpMHC6r83aYVJTqhkX9n3qJTm2sYkdQIDaA6fpfo4ZZZNW81lhuJ0rvMsW84ScKTT4yC5AfI6neuzK7vRR55vDUgcVhliIAmvir3VhyCKCBgBEbhgBeYOUapjvXPsdCxAK/WFkVMOP8du8M/Bxuy19jXRQCqPvpLJpsNw6KYBG6k0ra57PB++rgRnlqTX/DcRgF1z5tggzwJqpFO1aaPccFZqpp38UE8GlEmtd/IFziTJLYqWRWyfZhiXR+/2J/JLj5yNeFz/ERYBbDNdhmswUSMZfNBDwiCKotMcNL3HK84ztaWj/3S3/inUFRP2MkVU7e4fyf94HRyZIxKON8YH3+w/mHuuFHX2vdeEAM2tfy+kWCuwfrRdnaU9PXFVmqoclta+T7kuMhtPu7i0vcat0s3MPoDjsTnYomqdcx/2agPgsREmFl5cjSc152HwNc3Bct2hXNZLJdiGTB77KJ9k4bgMVvE/V+lfx4ekp8WA74NEiiNUJPeLrjuJF4umbBPz4WJeuaU9GFE24uyKwIcwlVwTCrr4dpRdfgCIECCgh4On5sEB0WiCaMFa8kGi0GmHDrc2GJG5kXs9FTA7khDqe0O719TONLzM72yPH1jupdwuhdGY5dfXH0p5ro+STCxrb4qCiXlpfDrgTryN0Iv5wVhVRZE=----ATTACHMENT:----NTE5MTg4NDYwMTkyOTA3MCAzODU0NzQxNjc4OTExMDQ1IDI4MTg1OTk1MDkxNjYwNDk=