\Symfony\Component\EventDispatcher\DependencyInjectionRegisterListenersPass

Compiler pass to register tagged services for an event dispatcher.

Summary

Methods
Properties
Constants
__construct()
setHotPathEvents()
setNoPreloadEvents()
process()
No public properties found
No constants found
No protected methods found
$dispatcherService
$listenerTag
$subscriberTag
$eventAliasesParameter
N/A
getEventFromTypeDeclaration()
$hotPathEvents
$hotPathTagName
$noPreloadEvents
$noPreloadTagName
N/A

Properties

$dispatcherService

$dispatcherService

$listenerTag

$listenerTag

$subscriberTag

$subscriberTag

$eventAliasesParameter

$eventAliasesParameter

$hotPathEvents

$hotPathEvents

$hotPathTagName

$hotPathTagName

$noPreloadEvents

$noPreloadEvents

$noPreloadTagName

$noPreloadTagName

Methods

__construct()

__construct(string  $dispatcherService = 'event_dispatcher', string  $listenerTag = 'kernel.event_listener', string  $subscriberTag = 'kernel.event_subscriber', string  $eventAliasesParameter = 'event_dispatcher.event_aliases') : mixed

Parameters

string $dispatcherService
string $listenerTag
string $subscriberTag
string $eventAliasesParameter

Returns

mixed —

setHotPathEvents()

setHotPathEvents(array  $hotPathEvents) : $this

Parameters

array $hotPathEvents

Returns

$this —

setNoPreloadEvents()

setNoPreloadEvents(array  $noPreloadEvents) : $this

Parameters

array $noPreloadEvents

Returns

$this —

process()

process(\Symfony\Component\DependencyInjection\ContainerBuilder  $container) : mixed

Parameters

\Symfony\Component\DependencyInjection\ContainerBuilder $container

Returns

mixed —

getEventFromTypeDeclaration()

getEventFromTypeDeclaration(\Symfony\Component\DependencyInjection\ContainerBuilder  $container, string  $id, string  $method) : string

Parameters

\Symfony\Component\DependencyInjection\ContainerBuilder $container
string $id
string $method

Returns

string —