DelegatingLoader
extends DelegatingLoader
in package
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).
Tags
Table of Contents
- $env : mixed
- $resolver : mixed
- $defaultOptions : mixed
- $defaultRequirements : mixed
- $loading : mixed
- __construct() : mixed
- getResolver() : LoaderResolverInterface
- Gets the loader resolver.
- import() : mixed
- Imports a resource.
- load() : RouteCollection
- {@inheritdoc}
- resolve() : LoaderInterface
- Finds a loader able to load an imported resource.
- setResolver() : mixed
- Sets the loader resolver.
- supports() : mixed
- {@inheritdoc}
Properties
$env
protected
mixed
$env
$resolver
protected
mixed
$resolver
$defaultOptions
private
mixed
$defaultOptions
$defaultRequirements
private
mixed
$defaultRequirements
$loading
private
mixed
$loading
= false
Methods
__construct()
public
__construct(LoaderResolverInterface $resolver[, array<string|int, mixed> $defaultOptions = [] ][, array<string|int, mixed> $defaultRequirements = [] ]) : mixed
Parameters
- $resolver : LoaderResolverInterface
- $defaultOptions : array<string|int, mixed> = []
- $defaultRequirements : array<string|int, mixed> = []
Return values
mixed —getResolver()
Gets the loader resolver.
public
getResolver() : LoaderResolverInterface
Return values
LoaderResolverInterface —import()
Imports a resource.
public
import(mixed $resource[, string|null $type = null ]) : mixed
Parameters
- $resource : mixed
-
A resource
- $type : string|null = null
-
The resource type or null if unknown
Return values
mixed —load()
{@inheritdoc}
public
load(mixed $resource[, string|null $type = null ]) : RouteCollection
Parameters
- $resource : mixed
- $type : string|null = null
Return values
RouteCollection —resolve()
Finds a loader able to load an imported resource.
public
resolve(mixed $resource[, string|null $type = null ]) : LoaderInterface
Parameters
- $resource : mixed
-
A resource
- $type : string|null = null
-
The resource type or null if unknown
Tags
Return values
LoaderInterface —setResolver()
Sets the loader resolver.
public
setResolver(LoaderResolverInterface $resolver) : mixed
Parameters
- $resolver : LoaderResolverInterface
Return values
mixed —supports()
{@inheritdoc}
public
supports(mixed $resource[, string|null $type = null ]) : mixed
Parameters
- $resource : mixed
- $type : string|null = null