FirewallMap
in package
implements
FirewallMapInterface
This is a lazy-loading firewall map implementation.
Listeners will only be initialized if we really need them.
Tags
Interfaces, Classes, Traits and Enums
- FirewallMapInterface
- This interface must be implemented by firewall maps.
Table of Contents
- $container : mixed
- $map : mixed
- __construct() : mixed
- getFirewallConfig() : FirewallConfig|null
- getListeners() : array<string|int, mixed>
- Returns the authentication listeners, and the exception listener to use for the given request.
- getFirewallContext() : FirewallContext|null
Properties
$container
private
mixed
$container
$map
private
mixed
$map
Methods
__construct()
public
__construct(ContainerInterface $container, iteratable<string|int, mixed> $map) : mixed
Parameters
- $container : ContainerInterface
- $map : iteratable<string|int, mixed>
Return values
mixed —getFirewallConfig()
public
getFirewallConfig(Request $request) : FirewallConfig|null
Parameters
- $request : Request
Return values
FirewallConfig|null —getListeners()
Returns the authentication listeners, and the exception listener to use for the given request.
public
getListeners(Request $request) : array<string|int, mixed>
If there are no authentication listeners, the first inner array must be empty.
If there is no exception listener, the second element of the outer array must be null.
If there is no logout listener, the third element of the outer array must be null.
Parameters
- $request : Request
Return values
array<string|int, mixed> —of the format [[AuthenticationListener], ExceptionListener, LogoutListener]
getFirewallContext()
private
getFirewallContext(Request $request) : FirewallContext|null
Parameters
- $request : Request