class RegisterListenersPass implements CompilerPassInterface

Compiler pass to register tagged services for an event dispatcher.

Methods

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

Constructor.

process(ContainerBuilder $container)

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

Details

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

Constructor.

Parameters

string $dispatcherService Service name of the event dispatcher in processed container
string $listenerTag Tag name used for listener
string $subscriberTag Tag name used for subscribers

at line line 52
process(ContainerBuilder $container)

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

Parameters

ContainerBuilder $container