function TestSessionHandlerProxy::__construct
Same name in other branches
- 9 core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::__construct()
- 8.9.x core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\TestSessionHandlerProxy::__construct()
- 11.x core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php \Drupal\session_test\Session\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.