class RegisterListenersPass implements CompilerPassInterface

Compiler pass to register tagged services for an event dispatcher.

Properties

protected $dispatcherService
protected $listenerTag
protected $subscriberTag

Methods

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

No description

setHotPathEvents(array $hotPathEvents, $tagName = 'container.hot_path')

No description

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Details

at line 34
__construct(string $dispatcherService = 'event_dispatcher', string $listenerTag = 'kernel.event_listener', string $subscriberTag = 'kernel.event_subscriber')

Parameters

string $dispatcherService
string $listenerTag
string $subscriberTag

at line 41
setHotPathEvents(array $hotPathEvents, $tagName = 'container.hot_path')

Parameters

array $hotPathEvents
$tagName

at line 49
process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container