Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Session.php

function Session::__construct

Same name in this branch
  1. 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Session.php \WebDriver\Session::__construct()
  2. 11.1.x vendor/behat/mink/src/Session.php \Behat\Mink\Session::__construct()
  3. 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\StackMiddleware

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal