function UserFloodControl::__construct
Same name and namespace in other branches
- 11.x core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::__construct()
- 10 core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::__construct()
- 9 core/modules/user/src/UserFloodControl.php \Drupal\user\UserFloodControl::__construct()
Construct the UserFloodControl.
Parameters
\Drupal\Core\Flood\FloodInterface $flood: The flood service.
\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher service.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack used to retrieve the current request.
File
-
core/
modules/ user/ src/ UserFloodControl.php, line 28
Class
- UserFloodControl
- User Flood Control service.
Namespace
Drupal\userCode
public function __construct(protected FloodInterface $flood, protected EventDispatcherInterface $eventDispatcher, protected RequestStack $requestStack) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.