class PhpFileLoader in Plug 7
PhpFileLoader loads translations from PHP files returning an array of translations.
@author Fabien Potencier <fabien@symfony.com>
@api
Hierarchy
- class \Symfony\Component\Translation\Loader\ArrayLoader implements LoaderInterface
- class \Symfony\Component\Translation\Loader\FileLoader
- class \Symfony\Component\Translation\Loader\PhpFileLoader
- class \Symfony\Component\Translation\Loader\FileLoader
Expanded class hierarchy of PhpFileLoader
1 file declares its use of PhpFileLoader
- PhpFileLoaderTest.php in lib/
Symfony/ translation/ Tests/ Loader/ PhpFileLoaderTest.php
1 string reference to 'PhpFileLoader'
- TranslatorTest::getTransFileTests in lib/
Symfony/ translation/ Tests/ TranslatorTest.php
File
- lib/
Symfony/ translation/ Loader/ PhpFileLoader.php, line 21
Namespace
Symfony\Component\Translation\LoaderView source
class PhpFileLoader extends FileLoader {
/**
* {@inheritdoc}
*/
protected function loadResource($resource) {
return require $resource;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ArrayLoader:: |
private | function | Flattens an nested array of translations. | |
FileLoader:: |
public | function |
@api Overrides ArrayLoader:: |
|
PhpFileLoader:: |
protected | function |
Overrides FileLoader:: |