Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Translation/Dumper/YamlFileDumper.php
Строк: 38
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyComponentTranslationDumper;

use 
SymfonyComponentTranslationMessageCatalogue;
use 
SymfonyComponentYamlYaml;

/**
 * YamlFileDumper generates yaml files from a message catalogue.
 *
 * @author Michel Salib <michelsalib@hotmail.com>
 */
class YamlFileDumper extends FileDumper
{
    
/**
     * {@inheritdoc}
     */
    
protected function format(MessageCatalogue $messages$domain)
    {
        return 
Yaml::dump($messages->all($domain));
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getExtension()
    {
        return 
'yml';
    }
}
Онлайн: 0
Реклама