function Session::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()
  2. 8.9.x core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()
  3. 10 core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()

Constructs a Session stack middleware object.

Parameters

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

\Closure $sessionClosure: A closure that wraps the session service.

File

core/lib/Drupal/Core/StackMiddleware/Session.php, line 34

Class

Session
Wrap session logic around a HTTP request.

Namespace

Drupal\Core\StackMiddleware

Code

public function __construct(HttpKernelInterface $http_kernel, \Closure $sessionClosure) {
    $this->httpKernel = $http_kernel;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.