Documentation

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
author

Fabien Potencier fabien@symfony.com

final

Table of Contents

Properties

$env  : mixed
$resolver  : mixed
$defaultOptions  : array<string|int, mixed>
$defaultRequirements  : array<string|int, mixed>
$loading  : bool

Methods

__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()  : bool
{@inheritdoc}

Properties

$resolver

protected mixed $resolver

$defaultRequirements

private array<string|int, mixed> $defaultRequirements

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> = []

import()

Imports a resource.

public import(mixed $resource[, string $type = null ]) : mixed
Parameters
$resource : mixed
$type : string = null

supports()

{@inheritdoc}

public supports(mixed $resource[, string $type = null ]) : bool
Parameters
$resource : mixed
$type : string = null
Return values
bool

        
On this page

Search results