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\StackMiddleware

Members

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.
doc_Drupal
2016-10-29 09:41:57
Comments
Leave a Comment

Please login to continue.