Firewall
in package
implements
EventSubscriberInterface
Firewall uses a FirewallMap to register security listeners for the given request.
It allows for different security strategies within the same application (a Basic authentication for the /api, and a web based authentication for everything else for instance).
Tags
Table of Contents
Interfaces
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Properties
- $dispatcher : mixed
- $exceptionListeners : SplObjectStorage<Request, ExceptionListener>
- $map : mixed
Methods
- __construct() : mixed
- getSubscribedEvents() : array<string, string|array{0: string, 1: int}|array<int, array{0: string, 1?: int}>>
- Returns an array of event names this subscriber wants to listen to.
- onKernelFinishRequest() : mixed
- onKernelRequest() : mixed
- callListeners() : mixed
- getListenerPriority() : int
Properties
$dispatcher
private
mixed
$dispatcher
$exceptionListeners
private
SplObjectStorage<Request, ExceptionListener>
$exceptionListeners
$map
private
mixed
$map
Methods
__construct()
public
__construct(FirewallMapInterface $map, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $map : FirewallMapInterface
- $dispatcher : EventDispatcherInterface
getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
public
static getSubscribedEvents() : array<string, string|array{0: string, 1: int}|array<int, array{0: string, 1?: int}>>
Return values
array<string, string|array{0: string, 1: int}|array<int, array{0: string, 1?: int}>>onKernelFinishRequest()
public
onKernelFinishRequest(FinishRequestEvent $event) : mixed
Parameters
- $event : FinishRequestEvent
onKernelRequest()
public
onKernelRequest(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
callListeners()
protected
callListeners(RequestEvent $event, iterable<string|int, mixed> $listeners) : mixed
Parameters
- $event : RequestEvent
- $listeners : iterable<string|int, mixed>
getListenerPriority()
private
getListenerPriority(object $logoutListener) : int
Parameters
- $logoutListener : object