You are here

public function IpBanMiddleware::__construct in IP Ban 8

Constructs a BanMiddleware object.

Parameters

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

\Drupal\ban\IpBanSetBanInterface $manager: The IP Ban manager.

File

src/IpBanMiddleware.php, line 38

Class

IpBanMiddleware
Provides a HTTP middleware to implement IP based banning.

Namespace

Drupal\ip_ban

Code

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