You are here

public function TestSessionHandlerProxy::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}