/**
  * {@inheritdoc}
  */
 public function close()
 {
     $trace = \Drupal::service('session_test.session_handler_proxy_trace');
     $trace[] = ['BEGIN', $this->optionalArgument, __FUNCTION__];
     $result = $this->sessionHandler->close();
     $trace[] = ['END', $this->optionalArgument, __FUNCTION__];
     return $result;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function save()
 {
     if (!$this->started || $this->closed) {
         throw new \RuntimeException('Trying to save a session that was not started yet or was already closed');
     }
     $this->write();
     $this->handler->close();
     $this->closed = true;
     $this->started = false;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function close()
 {
     $this->active = false;
     return (bool) $this->handler->close();
 }
 /**
  * {@inheritdoc}
  */
 public function close()
 {
     return $this->wrappedSessionHandler->close();
 }
Пример #5
0
 /**
  * {@inheritdoc}
  */
 public function close()
 {
     return (bool) $this->handler->close();
 }