Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader

class DelegatingLoader extends DelegatingLoader

DelegatingLoader delegates route loading to other loaders using a loader resolver.

This implementation resolves the _controller attribute from the short notation
to the fully-qualified form (from a:b:c to class:method).

Methods

__construct(ControllerNameParser $parser, LoggerInterface $logger = null, LoaderResolverInterface $resolver)

Constructor.

RouteCollection load(mixed $resource, string $type = null)

Loads a resource.

Boolean supports(mixed $resource, string $type = null)

Returns true if this class supports the given resource.

from DelegatingLoader

Details

at line 39
public __construct(ControllerNameParser $parser, LoggerInterface $logger = null, LoaderResolverInterface $resolver)

Constructor.

Parameters

ControllerNameParser $parser A ControllerNameParser instance
LoggerInterface $logger A LoggerInterface instance
LoaderResolverInterface $resolver A LoaderResolverInterface instance

at line 55
public RouteCollection load(mixed $resource, string $type = null)

Loads a resource.

Parameters

mixed $resource A resource
string $type The resource type

Return Value

RouteCollection A RouteCollection instance

in DelegatingLoader at line 58
public Boolean supports(mixed $resource, string $type = null)

Returns true if this class supports the given resource.

Parameters

mixed $resource A resource
string $type The resource type

Return Value

Boolean true if this class supports the given resource, false otherwise