Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MockFileSessionStorage.php

function MockFileSessionStorage::getFilePath

Calculate path to file.

3 calls to MockFileSessionStorage::getFilePath()
MockFileSessionStorage::destroy in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Deletes a session from persistent storage. Deliberately leaves session data in memory intact.
MockFileSessionStorage::read in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Reads session from storage and loads session.
MockFileSessionStorage::save in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Force the session to be saved and closed.

File

vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php, line 128

Class

MockFileSessionStorage
MockFileSessionStorage is used to mock sessions for functional testing where you may need to persist session data across separate PHP processes.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

private function getFilePath() : string {
    return $this->savePath . '/' . $this->id . '.mocksess';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal