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

process(ContainerBuilder $container)

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

Details

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

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 38
process(ContainerBuilder $container)

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

Parameters

ContainerBuilder $container