function UserFloodSubscriber::__construct
Same name in other branches
- 9 core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::__construct()
- 10 core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::__construct()
Constructs a UserFloodSubscriber.
Parameters
\Psr\Log\LoggerInterface $logger: A logger instance.
File
-
core/
modules/ user/ src/ EventSubscriber/ UserFloodSubscriber.php, line 29
Class
- UserFloodSubscriber
- Logs details of User Flood Control events.
Namespace
Drupal\user\EventSubscriberCode
public function __construct(?LoggerInterface $logger = NULL) {
$this->logger = $logger;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.