[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/Session/Storage/ -> MockFileSessionStorage.php (summary)

(no description)

File Size: 152 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MockFileSessionStorage:: (7 methods):
  __construct()
  start()
  regenerate()
  save()
  destroy()
  getFilePath()
  read()


Class: MockFileSessionStorage  - X-Ref

MockFileSessionStorage is used to mock sessions for
functional testing when done in a single PHP process.

No PHP session is actually started since a session can be initialized
and shutdown only once per PHP execution cycle and this class does
not pollute any session related globals, including session_*() functions
or session.* PHP ini directives.

__construct($savePath = null, $name = 'MOCKSESSID', MetadataBag $metaBag = null)   X-Ref

param: string      $savePath Path of directory to save session files
param: string      $name     Session name
param: MetadataBag $metaBag  MetadataBag instance

start()   X-Ref
{@inheritdoc}


regenerate($destroy = false, $lifetime = null)   X-Ref
{@inheritdoc}


save()   X-Ref
{@inheritdoc}


destroy()   X-Ref
Deletes a session from persistent storage.
Deliberately leaves session data in memory intact.


getFilePath()   X-Ref
Calculate path to file.

return: string File path

read()   X-Ref
Reads session from storage and loads session.




Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1