<?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;

/**
 * PhpFileDumper generates PHP files from a message catalogue.
 *
 * @author Michel Salib <michelsalib@hotmail.com>
 */
class PhpFileDumper extends FileDumper
{
    public function formatCatalogue(MessageCatalogue $messages, string $domain, array $options = []): string
    {
        return "<?php\n\nreturn ".var_export($messages->all($domain), true).";\n";
    }

    protected function getExtension(): string
    {
        return 'php';
    }
}
                                                                                                                                                                                                                                        {
    "name": "symfony/translation",
    "type": "library",
    "description": "Provides tools to internationalize your application",
    "keywords": [],
    "homepage": "https://symfony.com",
    "license": "MIT",
    "authors": [
        {
            "name": "Fabien Potencier",
            "email": "fabien@symfony.com"
        },
        {
            "name": "Symfony Community",
            "homepage": "https://symfony.com/contributors"
        }
    ],
    "require": {
        "php": ">=8.2",
        "symfony/polyfill-mbstring": "~1.0",
        "symfony/translation-contracts": "^2.5.3|^3.3",
        "symfony/deprecation-contracts": "^2.5|^3"
    },
    "require-dev": {
        "nikic/php-parser": "^5.0",
        "symfony/config": "^6.4|^7.0|^8.0",
        "symfony/console": "^6.4|^7.0|^8.0",
        "symfony/dependency-injection": "^6.4|^7.0|^8.0",
        "symfony/http-client-contracts": "^2.5|^3.0",
        "symfony/http-kernel": "^6.4|^7.0|^8.0",
        "symfony/intl": "^6.4|^7.0|^8.0",
        "symfony/polyfill-intl-icu": "^1.21",
        "symfony/routing": "^6.4|^7.0|^8.0",
        "symfony/service-contracts": "^2.5|^3",
        "symfony/yaml": "^6.4|^7.0|^8.0",
        "symfony/finder": "^6.4|^7.0|^8.0",
        "psr/log": "^1|^2|^3"
    },
    "conflict": {
        "nikic/php-parser": "<5.0",
        "symfony/config": "<6.4",
        "symfony/dependency-injection": "<6.4",
        "symfony/http-client-contracts": "<2.5",
        "symfony/http-kernel": "<6.4",
        "symfony/service-contracts": "<2.5",
        "symfony/twig-bundle": "<6.4",
        "symfony/yaml": "<6.4",
        "symfony/console": "<6.4"
    },
    "provide": {
        "symfony/translation-implementation": "2.3|3.0"
    },
    "autoload": {
        "files": [ "Resources/functions.php" ],
        "psr-4": { "Symfony\\Component\\Translation\\": "" },
        "exclude-from-classmap": [
            "/Tests/"
        ]
    },
    "minimum-stability": "dev"
}
