function TestSessionHandlerProxy::__construct

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

Code

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.