Session
class Session
Wrap session logic around a HTTP request.
Note, the session service is not injected into this class in order to prevent premature initialization of session storage (database). Instead the session service is retrieved from the container only when handling the request.
Hierarchy
- class \Drupal\Core\StackMiddleware\Session implements HttpKernelInterface uses ContainerAwareTrait
File
- core/lib/Drupal/Core/StackMiddleware/Session.php, line 16
Namespace
Drupal\Core\StackMiddlewareMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ContainerAwareTrait::$container | protected | property | |
ContainerAwareTrait::setContainer | public | function | Sets the container. Overrides ContainerAwareInterface::setContainer |
HttpKernelInterface::MASTER_REQUEST | constant | ||
HttpKernelInterface::SUB_REQUEST | constant | ||
Session::$httpKernel | protected | property | The wrapped HTTP kernel. |
Session::$sessionServiceName | protected | property | The session service name. |
Session::handle | public | function | Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle |
Session::__construct | public | function | Constructs a Session stack middleware object. |
© 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/class/Session/8.1.x