PHP 8.2.30
Preview: YamlFileDumper.php Size: 822 B
/opt/cloudlinux/alt-php53/root/usr/share/pear/Symfony/Component/Translation/Dumper/YamlFileDumper.php

<?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 Symfony\Component\Translation\Dumper;

use Symfony\Component\Translation\MessageCatalogue;
use Symfony\Component\Yaml\Yaml;

/**
 * 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';
    }
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
1.45 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
810 B lrw-r--r-- 2019-12-18 11:20:43
Edit Download
1.84 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
3.64 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
984 B lrw-r--r-- 2019-12-18 11:20:43
Edit Download
893 B lrw-r--r-- 2019-12-18 11:20:43
Edit Download
2.31 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
844 B lrw-r--r-- 2019-12-18 11:20:43
Edit Download
1.50 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
1.32 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
1.93 KB lrw-r--r-- 2019-12-18 11:20:43
Edit Download
822 B lrw-r--r-- 2019-12-18 11:20:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).