PHP Class Symfony\Bundle\FrameworkBundle\Routing\LoaderResolver

If also lazy-loads them.
Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Component\Routing\Loader\LoaderResolver
Show file Open project: pmjones/php-framework-benchmarks

Protected Properties

Property Type Description
$container
$services

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $loaders = [] ) Constructor.
resolve ( mixed $resource ) : Symfony\Component\Routing\Loader\LoaderInterface Returns a loader able to load the resource.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, array $loaders = [] )
$container Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance
$loaders array An array of loaders

resolve() public method

Returns a loader able to load the resource.
public resolve ( mixed $resource ) : Symfony\Component\Routing\Loader\LoaderInterface
$resource mixed A resource
return Symfony\Component\Routing\Loader\LoaderInterface A LoaderInterface instance

Property Details

$container protected property

protected $container

$services protected property

protected $services