Spec-Zone.ru › Symfony 4.1

DelegatingLoader

class DelegatingLoader extends DelegatingLoader

DelegatingLoader делегирует загрузку маршрутов другим загрузчикам, используя решатель загрузчиков.

Эта реализация разрешает атрибут _controller из короткой записи в полную форму (от a:b:c до class::method).

Свойства

protected $resolver из Loader
protected $parser

Методы

LoaderResolverInterface getResolver()

Возвращает решатель загрузчиков.

из Loader
setResolver(LoaderResolverInterface $resolver)

Устанавливает решатель загрузчиков.

из Loader
mixed import(mixed $resource, string|null $type = null)

Импортирует ресурс.

из Loader
$this|LoaderInterface resolve(mixed $resource, string|null $type = null)

Находит загрузчик, способный загрузить импортированный ресурс.

из Loader
__construct(ControllerNameParser $parser, LoaderResolverInterface $resolver)
load(mixed $resource, string|null $type = null)

Загружает ресурс.

bool supports(mixed $resource, string|null $type = null)

Возвращает, поддерживает ли данный класс данный ресурс.

из DelegatingLoader

Подробности

LoaderResolverInterface getResolver()

Возвращает решатель загрузчиков.

Возвращаемое значение

LoaderResolverInterface Экземпляр LoaderResolverInterface

setResolver(LoaderResolverInterface $resolver)

Устанавливает решатель загрузчиков.

Параметры

LoaderResolverInterface $resolver

mixed import(mixed $resource, string|null $type = null)

Импортирует ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен

Возвращаемое значение

mixed

$this|LoaderInterface resolve(mixed $resource, string|null $type = null)

Находит загрузчик, способный загрузить импортированный ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен

Возвращаемое значение

$this|LoaderInterface

Исключения

FileLoaderLoadException Если загрузчик не найден

__construct(ControllerNameParser $parser, LoaderResolverInterface $resolver)

Параметры

ControllerNameParser $parser Экземпляр ControllerNameParser
LoaderResolverInterface $resolver

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

Загружает ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен

Исключения

Exception Если произошла ошибка

bool supports(mixed $resource, string|null $type = null)

Возвращает, поддерживает ли данный класс данный ресурс.

Параметры

mixed $resource Ресурс
string|null $type Тип ресурса или null, если неизвестен

Возвращаемое значение

bool True, если данный класс поддерживает данный ресурс, иначе false

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API