function TestSessionHandlerProxy::__construct
Constructs a new TestSessionHandlerProxy object.
Parameters
\SessionHandlerInterface $session_handler: The decorated session handler.
mixed $optional_argument: (optional) An optional argument.
File
- 
              core/
modules/ system/ tests/ modules/ session_test/ src/ Session/ TestSessionHandlerProxy.php, line 32  
Class
- TestSessionHandlerProxy
 - Provides a test session handler proxy.
 
Namespace
Drupal\session_test\SessionCode
public function __construct(\SessionHandlerInterface $session_handler, $optional_argument = NULL) {
  $this->sessionHandler = $session_handler;
  $this->optionalArgument = $optional_argument;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.