public function UserFloodSubscriber::__construct in Drupal 9
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;
}