for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka ([email protected])
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
namespace Kdyby\Translation\Dumper;
use Nette\Neon\Neon;
use Symfony\Component\Translation\Dumper\FileDumper;
use Symfony\Component\Translation\MessageCatalogue;
* Generates Neon files from a message catalogue.
* @author Filip Procházka <[email protected]>
class NeonFileDumper extends FileDumper
{
* {@inheritDoc}
public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = [])
return Neon::encode($messages->all($domain), Neon::BLOCK);
}
protected function format(MessageCatalogue $messages, $domain)
protected function getExtension()
return 'neon';