Spec-Zone.ru › Symfony 4.0

ArgumentResolver

class ArgumentResolver implements ArgumentResolverInterface

Ответственный за разрешение аргументов, переданных в действие.

Методы

__construct(ArgumentMetadataFactoryInterface $argumentMetadataFactory = null, iterable $argumentValueResolvers = array())
array getArguments(Request $request, callable $controller)

Возвращает аргументы для передачи контроллеру.

static getDefaultArgumentValueResolvers()

Подробности

__construct(ArgumentMetadataFactoryInterface $argumentMetadataFactory = null, iterable $argumentValueResolvers = array())

Параметры

ArgumentMetadataFactoryInterface $argumentMetadataFactory
iterable $argumentValueResolvers

array getArguments(Request $request, callable $controller)

Возвращает аргументы для передачи контроллеру.

Параметры

Request $request
callable $controller

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

array Массив аргументов для передачи контроллеру

Исключения

RuntimeException При невозможности предоставить значение для обязательного аргумента

static getDefaultArgumentValueResolvers()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Controller/ArgumentResolver.html

Spec-Zone.ru

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