FirewallMap
in package
implements
FirewallMapInterface
This is a lazy-loading firewall map implementation.
Listeners will only be initialized if we really need them.
Tags
Table of Contents
Interfaces
- FirewallMapInterface
- This interface must be implemented by firewall maps.
Properties
- $container : mixed
- $map : iterable<string|int, mixed>
Methods
- __construct() : mixed
- getFirewallConfig() : FirewallConfig|null
- getListeners() : LogoutListener}
- Returns the authentication listeners, and the exception listener to use for the given request.
- getFirewallContext() : FirewallContext|null
Properties
$container
private
mixed
$container
$map
private
iterable<string|int, mixed>
$map
Methods
__construct()
public
__construct(ContainerInterface $container, iterable<string|int, mixed> $map) : mixed
Parameters
- $container : ContainerInterface
- $map : iterable<string|int, mixed>
getFirewallConfig()
public
getFirewallConfig(Request $request) : FirewallConfig|null
Parameters
- $request : Request
Return values
FirewallConfig|nullgetListeners()
Returns the authentication listeners, and the exception listener to use for the given request.
public
getListeners(Request $request) : LogoutListener}
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
LogoutListener}getFirewallContext()
private
getFirewallContext(Request $request) : FirewallContext|null
Parameters
- $request : Request