You are here

public function PerimeterSubscriber::__construct in Drupal Perimeter Defence 8

Same name and namespace in other branches
  1. 2.0.x src/EventSubscriber/PerimeterSubscriber.php \Drupal\perimeter\EventSubscriber\PerimeterSubscriber::__construct()

File

src/EventSubscriber/PerimeterSubscriber.php, line 25

Class

PerimeterSubscriber
On page not found events, ban the IP if the request is suspicious.

Namespace

Drupal\perimeter\EventSubscriber

Code

public function __construct(LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory) {
  $this->loggerFactory = $logger_factory;
  $this->configFactory = $config_factory;
}