UserValueResolver
in package
implements
ArgumentValueResolverInterface
FinalYes
Supports the argument type of {@see UserInterface}.
Tags
Table of Contents
Interfaces
- ArgumentValueResolverInterface
- Responsible for resolving the value of an argument based on its metadata.
Properties
- $tokenStorage : mixed
Methods
- __construct() : mixed
- resolve() : iterable<string|int, mixed>
- Returns the possible value(s).
- supports() : bool
- Whether this resolver can resolve the value for the given ArgumentMetadata.
Properties
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
resolve()
Returns the possible value(s).
public
resolve(Request $request, ArgumentMetadata $argument) : iterable<string|int, mixed>
Parameters
- $request : Request
- $argument : ArgumentMetadata
Return values
iterable<string|int, mixed>supports()
Whether this resolver can resolve the value for the given ArgumentMetadata.
public
supports(Request $request, ArgumentMetadata $argument) : bool
Parameters
- $request : Request
- $argument : ArgumentMetadata