W3cubDocs

/Symfony 4.1

GuardListener

class GuardListener

Methods

__construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authenticationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
onTransition(GuardEvent $event, $eventName)

Details

__construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authenticationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)

Parameters

array $configuration
ExpressionLanguage $expressionLanguage
TokenStorageInterface $tokenStorage
AuthorizationCheckerInterface $authenticationChecker
AuthenticationTrustResolverInterface $trustResolver
RoleHierarchyInterface $roleHierarchy
ValidatorInterface $validator

onTransition(GuardEvent $event, $eventName)

Parameters

GuardEvent $event
$eventName

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Workflow/EventListener/GuardListener.html