You are here

class PhpFileLoader in Plug 7

PhpFileLoader loads translations from PHP files returning an array of translations.

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

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\Loader
View source
class PhpFileLoader extends FileLoader {

  /**
   * {@inheritdoc}
   */
  protected function loadResource($resource) {
    return require $resource;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ArrayLoader::flatten private function Flattens an nested array of translations.
FileLoader::load public function @api Overrides ArrayLoader::load
PhpFileLoader::loadResource protected function Overrides FileLoader::loadResource