SecurityUserValueResolver

class SecurityUserValueResolver implements ArgumentValueResolverInterface

Supports the argument type of {see UserInterface}.

Methods

__construct(TokenStorageInterface $tokenStorage)
bool supports(Request $request, ArgumentMetadata $argument)

Whether this resolver can resolve the value for the given ArgumentMetadata.

Generator resolve(Request $request, ArgumentMetadata $argument)

Returns the possible value(s).

Details

__construct(TokenStorageInterface $tokenStorage)

Parameters

TokenStorageInterface $tokenStorage

bool supports(Request $request, ArgumentMetadata $argument)

Whether this resolver can resolve the value for the given ArgumentMetadata.

Parameters

Request $request
ArgumentMetadata $argument

Return Value

bool

Generator resolve(Request $request, ArgumentMetadata $argument)

Returns the possible value(s).

Parameters

Request $request
ArgumentMetadata $argument

Return Value

Generator

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/SecurityBundle/SecurityUserValueResolver.html