public function Session::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/behat/mink/src/Session.php \Behat\Mink\Session::__construct()
- 8 vendor/symfony/http-foundation/Session/Session.php \Symfony\Component\HttpFoundation\Session\Session::__construct()
- 8 core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()
Same name and namespace in other branches
- 8.0 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.
string $service_name: The name of the session service, defaults to "session".
File
- core/
lib/ Drupal/ Core/ StackMiddleware/ Session.php, line 47 - Contains \Drupal\Core\StackMiddleware\Session.
Class
- Session
- Wrap session logic around a HTTP request.
Namespace
Drupal\Core\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel, $service_name = 'session') {
$this->httpKernel = $http_kernel;
$this->sessionServiceName = $service_name;
}