Documentation

RegisterListenersPass
in package
implements CompilerPassInterface

Compiler pass to register tagged services for an event dispatcher.

Table of Contents

Interfaces

CompilerPassInterface

Properties

$dispatcherService  : mixed
$eventAliasesParameter  : mixed
$listenerTag  : mixed
$subscriberTag  : mixed
$hotPathEvents  : mixed
$hotPathTagName  : mixed

Methods

__construct()  : mixed
process()  : mixed
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'

process()

public process(ContainerBuilder $container) : mixed
Parameters
$container : ContainerBuilder

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'

getEventFromTypeDeclaration()

private getEventFromTypeDeclaration(ContainerBuilder $container, string $id, string $method) : string
Parameters
$container : ContainerBuilder
$id : string
$method : string
Return values
string

        
On this page

Search results