AccessListener
extends AbstractListener
in package
implements
ListenerInterface
Uses
LegacyListenerTrait
AccessListener enforces access control rules.
Tags
Interfaces, Classes, Traits and Enums
- ListenerInterface
- Interface that must be implemented by firewall listeners.
Table of Contents
- $accessDecisionManager : mixed
- $authManager : mixed
- $map : mixed
- $tokenStorage : mixed
- __construct() : mixed
- __invoke() : mixed
- authenticate() : mixed
- Handles access authorization.
- supports() : bool|null
- Tells whether the authenticate() method should be called or not depending on the incoming request.
Properties
$accessDecisionManager
private
mixed
$accessDecisionManager
$authManager
private
mixed
$authManager
$map
private
mixed
$map
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage, AccessDecisionManagerInterface $accessDecisionManager, AccessMapInterface $map, AuthenticationManagerInterface $authManager) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
- $accessDecisionManager : AccessDecisionManagerInterface
- $map : AccessMapInterface
- $authManager : AuthenticationManagerInterface
Return values
mixed —__invoke()
public
final __invoke(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —authenticate()
Handles access authorization.
public
authenticate(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Tags
Return values
mixed —supports()
Tells whether the authenticate() method should be called or not depending on the incoming request.
public
supports(Request $request) : bool|null
Parameters
- $request : Request