You are here

public function HttpblMiddleware::__construct in http:BL 8

Constructs a HttpblMiddleware object.

Parameters

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

\Drupal\httpbl\HttpblEvaluatorInterface $httpblEvaluator: The httpbl IP evaluator.

\Drupal\httpbl\HttpblResponseInterface $httpblResponse: The httpbl response builder.

File

src/HttpblMiddleware.php, line 45

Class

HttpblMiddleware
Provides a HTTP middleware to implement IP based banning.

Namespace

Drupal\httpbl

Code

public function __construct(HttpKernelInterface $http_kernel, HttpblEvaluatorInterface $httpblEvaluator, HttpblResponseInterface $httpblResponse) {
  $this->httpKernel = $http_kernel;
  $this->httpblEvaluator = $httpblEvaluator;
  $this->httpblResponse = $httpblResponse;
}