ArgumentResolver
in package
implements
ArgumentResolverInterface
Responsible for resolving the arguments passed to an action.
Tags
Interfaces, Classes and Traits
- ArgumentResolverInterface
- An ArgumentResolverInterface instance knows how to determine the arguments for a specific action.
Table of Contents
- $argumentMetadataFactory : mixed
- $argumentValueResolvers : mixed
- __construct() : mixed
- getArguments() : array<string|int, mixed>
- Returns the arguments to pass to the controller.
- getDefaultArgumentValueResolvers() : iteratable<int, ArgumentValueResolverInterface>
Properties
$argumentMetadataFactory
private
mixed
$argumentMetadataFactory
$argumentValueResolvers
private
mixed
$argumentValueResolvers
Methods
__construct()
public
__construct([ArgumentMetadataFactoryInterface|null $argumentMetadataFactory = null ][, iteratable<mixed, ArgumentValueResolverInterface> $argumentValueResolvers = [] ]) : mixed
Parameters
- $argumentMetadataFactory : ArgumentMetadataFactoryInterface|null = null
- $argumentValueResolvers : iteratable<mixed, ArgumentValueResolverInterface> = []
Return values
mixed —getArguments()
Returns the arguments to pass to the controller.
public
getArguments(Request $request, callable $controller) : array<string|int, mixed>
Parameters
- $request : Request
- $controller : callable
Return values
array<string|int, mixed> —getDefaultArgumentValueResolvers()
public
static getDefaultArgumentValueResolvers() : iteratable<int, ArgumentValueResolverInterface>