You are here

public function TestSessionHandlerProxy::open 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::open()

File

core/modules/system/tests/modules/session_test/src/Session/TestSessionHandlerProxy.php, line 40

Class

TestSessionHandlerProxy
Provides a test session handler proxy.

Namespace

Drupal\session_test\Session

Code

public function open($save_path, $name) {
  $trace = \Drupal::service('session_test.session_handler_proxy_trace');
  $trace[] = [
    'BEGIN',
    $this->optionalArgument,
    __FUNCTION__,
  ];
  $result = $this->sessionHandler
    ->open($save_path, $name);
  $trace[] = [
    'END',
    $this->optionalArgument,
    __FUNCTION__,
  ];
  return $result;
}