Constructs a UserFloodSubscriber.
\Psr\Log\LoggerInterface $logger: A logger instance.
public function __construct(?LoggerInterface $logger = NULL) { $this->logger = $logger; }