function RegisterEventSubscribersPass::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass::__construct()
Constructs a RegisterEventSubscribersPass object.
Parameters
\Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass $pass: The Symfony compiler pass that registers event subscribers.
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ RegisterEventSubscribersPass.php, line 20
Class
- RegisterEventSubscribersPass
- Wraps the Symfony event subscriber pass to use different tag names.
Namespace
Drupal\Core\DependencyInjection\CompilerCode
public function __construct(protected RegisterListenersPass $pass) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.