You are here

public function TestSessionHandlerProxy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 37
Contains \Drupal\session_test\Session\TestSessionHandlerProxy.

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;
}