function UserFloodSubscriber::__construct

Same name in other branches
  1. 9 core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::__construct()
  2. 11.x 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\EventSubscriber

Code

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.