AbstractListener
in package
A base class for listeners that can tell whether they should authenticate incoming requests.
Tags
Table of Contents
- __invoke() : mixed
- authenticate() : mixed
- Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
- supports() : bool|null
- Tells whether the authenticate() method should be called or not depending on the incoming request.
Methods
__invoke()
public
final __invoke(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —authenticate()
Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
public
abstract authenticate(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —supports()
Tells whether the authenticate() method should be called or not depending on the incoming request.
public
abstract supports(Request $request) : bool|null
Returning null means authenticate() can be called lazily when accessing the token storage.
Parameters
- $request : Request