public function SecKitEventSubscriber::__construct in Security Kit 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/SecKitEventSubscriber.php \Drupal\seckit\EventSubscriber\SecKitEventSubscriber::__construct()
Constructs an SecKitEventSubscriber object.
Parameters
\Psr\Log\LoggerInterface $logger: The Seckit logger channel.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
EventSubscriber/ SecKitEventSubscriber.php, line 60
Class
- SecKitEventSubscriber
- Subscribing an event.
Namespace
Drupal\seckit\EventSubscriberCode
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
$this->logger = $logger;
$this->config = $config_factory
->get('seckit.settings');
}