private function MockFileSessionStorage::read in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage::read()
Reads session from storage and loads session.
1 call to MockFileSessionStorage::read()
- MockFileSessionStorage::start in vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php - Starts the session.
File
- vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php, line 131
Class
- MockFileSessionStorage
- MockFileSessionStorage is used to mock sessions for functional testing when done in a single PHP process.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
private function read() {
$filePath = $this
->getFilePath();
$this->data = is_readable($filePath) && is_file($filePath) ? unserialize(file_get_contents($filePath)) : array();
$this
->loadSession();
}