You are here

private function MockFileSessionStorage::destroy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage::destroy()

Deletes a session from persistent storage. Deliberately leaves session data in memory intact.

1 call to MockFileSessionStorage::destroy()
MockFileSessionStorage::regenerate in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Regenerates id that represents this storage.

File

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

Class

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

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

private function destroy() {
  if (is_file($this
    ->getFilePath())) {
    unlink($this
      ->getFilePath());
  }
}