This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Translation/Loader/IniFileLoader.php

29 lines
560 B
PHP
Raw Normal View History

2011-09-19 16:00:58 +01:00
<?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\Loader;
/**
* IniFileLoader loads translations from an ini file.
*
* @author stealth35
*/
2015-04-15 01:53:15 +01:00
class IniFileLoader extends FileLoader
2011-09-19 16:00:58 +01:00
{
/**
* {@inheritdoc}
*/
2015-04-15 01:53:15 +01:00
protected function loadResource($resource)
2011-09-19 16:00:58 +01:00
{
2015-04-15 01:53:15 +01:00
return parse_ini_file($resource, true);
2011-09-19 16:00:58 +01:00
}
}