You are here

public function AdvbanMiddleware::__construct in Advanced ban 8

Constructs a AdvbanMiddleware object.

Parameters

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

\Drupal\advban\AdvbanIpManagerInterface $manager: The ban IP manager.

File

src/AdvbanMiddleware.php, line 36

Class

AdvbanMiddleware
Provides a HTTP middleware to implement IP based banning.

Namespace

Drupal\advban

Code

public function __construct(HttpKernelInterface $http_kernel, AdvbanIpManagerInterface $manager) {
  $this->httpKernel = $http_kernel;
  $this->banIpManager = $manager;
}