PHP Class Symfony\Component\Routing\Loader\LoaderResolver

Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Component\Routing\Loader\LoaderResolverInterface
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$loaders

Public Methods

Method Description
__construct ( array $loaders = [] ) Constructor.
addLoader ( Symfony\Component\Routing\Loader\LoaderInterface $loader ) Adds a loader.
getLoaders ( ) : Symfony\Component\Routing\Loader\LoaderInterface[] Returns the registered loaders.
resolve ( mixed $resource ) : Symfony\Component\Routing\Loader\LoaderInterface | false Returns a loader able to load the resource.

Method Details

__construct() public method

Constructor.
public __construct ( array $loaders = [] )
$loaders array An array of loaders

addLoader() public method

Adds a loader.
public addLoader ( Symfony\Component\Routing\Loader\LoaderInterface $loader )
$loader Symfony\Component\Routing\Loader\LoaderInterface A LoaderInterface instance

getLoaders() public method

Returns the registered loaders.
public getLoaders ( ) : Symfony\Component\Routing\Loader\LoaderInterface[]
return Symfony\Component\Routing\Loader\LoaderInterface[] An array of LoaderInterface instances

resolve() public method

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

Property Details

$loaders protected_oe property

protected $loaders