ControllerListener
in package
implements
EventSubscriberInterface
The ControllerListener class parses annotation blocks located in controller classes.
Tags
Interfaces, Classes, Traits and Enums
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Table of Contents
- $reader : Reader
- __construct() : mixed
- getSubscribedEvents() : array<string, mixed>
- Returns an array of event names this subscriber wants to listen to.
- onKernelController() : mixed
- Modifies the Request object to apply configuration information found in controllers annotations like the template to render or HTTP caching configuration.
- getConfigurations() : mixed
- getRealClass() : string
Properties
$reader
private
Reader
$reader
Methods
__construct()
public
__construct(Reader $reader) : mixed
Parameters
- $reader : Reader
Return values
mixed —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
onKernelController()
Modifies the Request object to apply configuration information found in controllers annotations like the template to render or HTTP caching configuration.
public
onKernelController(KernelEvent $event) : mixed
Parameters
- $event : KernelEvent
Return values
mixed —getConfigurations()
private
getConfigurations(array<string|int, mixed> $annotations) : mixed
Parameters
- $annotations : array<string|int, mixed>
Return values
mixed —getRealClass()
private
static getRealClass(string $class) : string
Parameters
- $class : string