mediatekformation

RegisterListenersPass
in package
implements CompilerPassInterface

Compiler pass to register tagged services for an event dispatcher.

Interfaces, Classes, Traits and Enums

CompilerPassInterface
Interface that must be implemented by compilation passes.

Table of Contents

$dispatcherService  : mixed
$eventAliasesParameter  : mixed
$listenerTag  : mixed
$subscriberTag  : mixed
$hotPathEvents  : mixed
$hotPathTagName  : mixed
__construct()  : mixed
process()  : mixed
You can modify the container here before it is dumped to PHP code.
setHotPathEvents()  : mixed
getEventFromTypeDeclaration()  : string

Properties

Methods

__construct()

public __construct([string $dispatcherService = 'event_dispatcher' ][, string $listenerTag = 'kernel.event_listener' ][, string $subscriberTag = 'kernel.event_subscriber' ][, string $eventAliasesParameter = 'event_dispatcher.event_aliases' ]) : mixed
Parameters
$dispatcherService : string = 'event_dispatcher'
$listenerTag : string = 'kernel.event_listener'
$subscriberTag : string = 'kernel.event_subscriber'
$eventAliasesParameter : string = 'event_dispatcher.event_aliases'
Return values
mixed

setHotPathEvents()

public setHotPathEvents(array<string|int, mixed> $hotPathEvents[, mixed $tagName = 'container.hot_path' ]) : mixed
Parameters
$hotPathEvents : array<string|int, mixed>
$tagName : mixed = 'container.hot_path'
Return values
mixed

Search results