Reads session from storage and loads session.
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php, line 132
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 read() {
$filePath = $this
->getFilePath();
$this->data = is_readable($filePath) && is_file($filePath) ? unserialize(file_get_contents($filePath)) : array();
$this
->loadSession();
}