function Session::__construct
Same name in this branch
- 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Session.php \WebDriver\Session::__construct()
- 11.1.x vendor/behat/mink/src/Session.php \Behat\Mink\Session::__construct()
- 11.1.x vendor/symfony/http-foundation/Session/Session.php \Symfony\Component\HttpFoundation\Session\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\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel, \Closure $sessionClosure) {
$this->httpKernel = $http_kernel;
}