You are here

public function Security::__construct in Security Review 8

Constructs a Security instance.

Parameters

\Drupal\security_review\SecurityReview $security_review: The SecurityReview service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\DrupalKernelInterface $kernel: The Drupal kernel.

File

src/Security.php, line 60

Class

Security
Provides frequently used security-related data.

Namespace

Drupal\security_review

Code

public function __construct(SecurityReview $security_review, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, DrupalKernelInterface $kernel) {

  // Store the dependencies.
  $this->securityReview = $security_review;
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;
  $this->kernel = $kernel;
}