PHP Class Symfony\Component\Routing\Loader\DelegatingLoader

This loader acts as an array of LoaderInterface objects - each having a chance to load a given resource (handled by the resolver)
Author: Fabien Potencier ([email protected])
Inheritance: extends Loader
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$resolver Symfony\Component\Routing\Loader\LoaderResolverInterface

Public Methods

Method Description
__construct ( Symfony\Component\Routing\Loader\LoaderResolverInterface $resolver ) Constructor.
load ( mixed $resource ) : RouteCollection Loads a resource.
supports ( mixed $resource ) : boolean Returns true if this class supports the given resource.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Routing\Loader\LoaderResolverInterface $resolver )
$resolver Symfony\Component\Routing\Loader\LoaderResolverInterface A LoaderResolverInterface instance

load() public method

Loads a resource.
public load ( mixed $resource ) : RouteCollection
$resource mixed A resource
return Symfony\Component\Routing\RouteCollection A RouteCollection instance

supports() public method

Returns true if this class supports the given resource.
public supports ( mixed $resource ) : boolean
$resource mixed A resource
return boolean true if this class supports the given resource, false otherwise

Property Details

$resolver protected property

protected LoaderResolverInterface,Symfony\Component\Routing\Loader $resolver
return Symfony\Component\Routing\Loader\LoaderResolverInterface