FileAccess Orion

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

since Symfony 4.4

Table of Contents

$parser  : mixed
$resolver  : mixed
$defaultOptions  : mixed
$loading  : mixed
__construct()  : mixed
getResolver()  : LoaderResolverInterface
Gets the loader resolver.
import()  : mixed
Imports a resource.
load()  : mixed
{@inheritdoc}
resolve()  : $this|LoaderInterface
Finds a loader able to load an imported resource.
setResolver()  : mixed
Sets the loader resolver.
supports()  : mixed
{@inheritdoc}

Properties

$resolver

protected mixed $resolver

Methods

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[, mixed $type = null ]) : mixed
Parameters
$resource : mixed
$type : mixed = null
Return values
mixed

resolve()

Finds a loader able to load an imported resource.

public resolve(mixed $resource[, string|null $type = null ]) : $this|LoaderInterface
Parameters
$resource : mixed

A resource

$type : string|null = null

The resource type or null if unknown

Tags
throws
LoaderLoadException

If no loader is found

Return values
$this|LoaderInterface

supports()

{@inheritdoc}

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

Search results