mediatekformation

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

Interfaces, Classes, Traits and Enums

EventSubscriberInterface
An EventSubscriber knows itself what events it is interested in.

Table of Contents

$dispatcher  : mixed
$exceptionListeners  : mixed
$map  : mixed
__construct()  : mixed
getSubscribedEvents()  : array<string, mixed>
Returns an array of event names this subscriber wants to listen to.
callListeners()  : mixed
handleRequest()  : mixed

Properties

$exceptionListeners

private mixed $exceptionListeners

Methods

getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

public static getSubscribedEvents() : array<string, mixed>
Return values
array<string, mixed>

The event names to listen to

callListeners()

protected callListeners(RequestEvent $event, iteratable<string|int, mixed> $listeners) : mixed
Parameters
$event : RequestEvent
$listeners : iteratable<string|int, mixed>
Return values
mixed

handleRequest()

protected handleRequest(GetResponseEvent $event, mixed $listeners) : mixed
Parameters
$event : GetResponseEvent
$listeners : mixed
Tags
deprecated

since Symfony 4.3, use callListeners instead

Return values
mixed

Search results