public function PerimeterSubscriber::__construct in Drupal Perimeter Defence 8
Same name and namespace in other branches
- 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\EventSubscriberCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory) {
$this->loggerFactory = $logger_factory;
$this->configFactory = $config_factory;
}