You are here

public function ShieldMiddleware::__construct in Shield 8

Constructs a BanMiddleware object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityTypeManager service.

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher service.

File

src/ShieldMiddleware.php, line 58

Class

ShieldMiddleware
Middleware for the shield module.

Namespace

Drupal\shield

Code

public function __construct(HttpKernelInterface $http_kernel, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, PathMatcherInterface $path_matcher) {
  $this->httpKernel = $http_kernel;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->pathMatcher = $path_matcher;
}