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/PhpFileLoader.php

29 lines
607 B
PHP
Raw Normal View History

2010-09-27 08:45:29 +01:00
<?php
/*
* This file is part of the Symfony package.
2010-09-27 08:45:29 +01:00
*
* (c) Fabien Potencier <fabien@symfony.com>
2010-09-27 08:45:29 +01:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2010-09-27 08:45:29 +01:00
*/
namespace Symfony\Component\Translation\Loader;
2010-09-27 08:45:29 +01:00
/**
* PhpFileLoader loads translations from PHP files returning an array of translations.
*
* @author Fabien Potencier <fabien@symfony.com>
2010-09-27 08:45:29 +01:00
*/
2015-04-15 01:53:15 +01:00
class PhpFileLoader extends FileLoader
2010-09-27 08:45:29 +01:00
{
/**
* {@inheritdoc}
*/
2015-04-15 01:53:15 +01:00
protected function loadResource($resource)
2010-09-27 08:45:29 +01:00
{
2015-04-15 01:53:15 +01:00
return require $resource;
2010-09-27 08:45:29 +01:00
}
}