Documentation

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
author

Fabien Potencier fabien@symfony.com

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

Methods

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}>>

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
Return values
int

        
On this page

Search results