PhpFileDumper.php in Zircon Profile 8.0
File
vendor/symfony/translation/Dumper/PhpFileDumper.php
View source
<?php
namespace Symfony\Component\Translation\Dumper;
use Symfony\Component\Translation\MessageCatalogue;
class PhpFileDumper extends FileDumper {
protected function format(MessageCatalogue $messages, $domain) {
$output = "<?php\n\nreturn " . var_export($messages
->all($domain), true) . ";\n";
return $output;
}
protected function getExtension() {
return 'php';
}
}
Classes
Name |
Description |
PhpFileDumper |
PhpFileDumper generates PHP files from a message catalogue. |