class PhpFileLoader

PhpFileLoader loads service definitions from a PHP file.

The PHP file is required and the $container variable can be used form the file to change the container.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Loader\FileLoader extends \Symfony\Component\Config\Loader\FileLoader
    • class \Symfony\Component\DependencyInjection\Loader\PhpFileLoader

Expanded class hierarchy of PhpFileLoader

2 files declare their use of PhpFileLoader

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php, line 24

Namespace

Symfony\Component\DependencyInjection\Loader
View source

Members

Namesort descending Modifiers Type Description Overrides
FileLoader::$container protected property
FileLoader::__construct public function Constructor.
PhpFileLoader::load public function Loads a PHP file.
PhpFileLoader::supports public function Returns true if this class supports the given resource.