mediatekformation

AbstractListener
in package

A base class for listeners that can tell whether they should authenticate incoming requests.

Tags
author

Nicolas Grekas p@tchwork.com

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

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
Return values
bool|null

Search results