mediatekformation

ControllerListener
in package
implements EventSubscriberInterface

The ControllerListener class parses annotation blocks located in controller classes.

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

$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

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

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
Return values
string

Search results