public function EarlyIpLoginMiddleware::__construct in IP Login 4.x
Constructs an EarlyIpLoginMiddleware.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.
string $service_name: The name of the session service, defaults to "session".
File
- src/
StackMiddleware/ EarlyIpLoginMiddleware.php, line 45
Class
- EarlyIpLoginMiddleware
- Provides a HTTP middleware to implement IP based login.
Namespace
Drupal\ip_login\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel, $service_name = 'session') {
$this->httpKernel = $http_kernel;
$this->sessionServiceName = $service_name;
}