ChannelListener
extends AbstractListener
in package
implements
ListenerInterface
Uses
LegacyListenerTrait
ChannelListener switches the HTTP protocol based on the access control configuration.
Tags
Interfaces, Classes, Traits and Enums
- ListenerInterface
- Interface that must be implemented by firewall listeners.
Table of Contents
- $authenticationEntryPoint : mixed
- $logger : mixed
- $map : mixed
- __construct() : mixed
- __invoke() : mixed
- authenticate() : mixed
- Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
- supports() : bool|null
- Handles channel management.
Properties
$authenticationEntryPoint
private
mixed
$authenticationEntryPoint
$logger
private
mixed
$logger
$map
private
mixed
$map
Methods
__construct()
public
__construct(AccessMapInterface $map, AuthenticationEntryPointInterface $authenticationEntryPoint[, LoggerInterface $logger = null ]) : mixed
Parameters
- $map : AccessMapInterface
- $authenticationEntryPoint : AuthenticationEntryPointInterface
- $logger : LoggerInterface = null
Return values
mixed —__invoke()
public
final __invoke(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —authenticate()
Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
public
authenticate(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —supports()
Handles channel management.
public
supports(Request $request) : bool|null
Parameters
- $request : Request