Session::__construct
public function Session::__construct
public Session::__construct(HttpKernelInterface$http_kernel,$service_name= 'session')
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 42
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StackMiddleware!Session.php/function/Session::__construct/8.1.x