public function BanMiddleware::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/ban/src/BanMiddleware.php \Drupal\ban\BanMiddleware::__construct()
Constructs a BanMiddleware object.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.
\Drupal\ban\BanIpManagerInterface $manager: The ban IP manager.
File
- core/
modules/ ban/ src/ BanMiddleware.php, line 42 - Contains \Drupal\ban\BanMiddleware.
Class
- BanMiddleware
- Provides a HTTP middleware to implement IP based banning.
Namespace
Drupal\banCode
public function __construct(HttpKernelInterface $http_kernel, BanIpManagerInterface $manager) {
$this->httpKernel = $http_kernel;
$this->banIpManager = $manager;
}