class RegisterListenersPass implements CompilerPassInterface
Compiler pass to register tagged services for an event dispatcher.
| protected | $dispatcherService | ||
| protected | $listenerTag | ||
| protected | $subscriberTag |
| __construct(string $dispatcherService = 'event_dispatcher', string $listenerTag = 'kernel.event_listener', string $subscriberTag = 'kernel.event_subscriber') | ||
| setHotPathEvents(array $hotPathEvents, $tagName = 'container.hot_path') | ||
| process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. |
| string | $dispatcherService | |
| string | $listenerTag | |
| string | $subscriberTag |
| array | $hotPathEvents | |
| $tagName |
You can modify the container here before it is dumped to PHP code.
| ContainerBuilder | $container |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.html