interface FirewallListenerInterface

Can be implemented by firewall listeners.

Methods

bool|null
supports(Request$request)

Tells whether the authenticate() method should be called or not depending on the incoming request.

void
authenticate(RequestEvent$event)

Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.

static int
getPriority()

Defines the priority of the listener.

Details

bool|null supports(Request$request)

Tells whether the authenticate() method should be called or not depending on the incoming request.

Returning null means authenticate() can be called lazily when accessing the token storage.

Parameters

Request $request

Return Value

bool|null

void authenticate(RequestEvent$event)

Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.

Parameters

RequestEvent $event

Return Value

void

staticint getPriority()

Defines the priority of the listener.

The higher the number, the earlier a listener is executed.

Return Value

int