4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Translation\Dumper;
14 use Symfony\Component\Translation\MessageCatalogue;
17 * PhpFileDumper generates PHP files from a message catalogue.
19 * @author Michel Salib <michelsalib@hotmail.com>
21 class PhpFileDumper extends FileDumper
26 public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = array())
28 return "<?php\n\nreturn ".var_export($messages->all($domain), true).";\n";
34 protected function getExtension()