public function MockArraySessionStorage::start in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage::start()
Starts the session.
Return value
bool True if started.
Throws
\RuntimeException If something goes wrong starting the session.
Overrides SessionStorageInterface::start
2 calls to MockArraySessionStorage::start()
- MockArraySessionStorage::getBag in vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php - Gets a SessionBagInterface by name.
- MockArraySessionStorage::regenerate in vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php - Regenerates id that represents this storage.
1 method overrides MockArraySessionStorage::start()
- MockFileSessionStorage::start in vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php - Starts the session.
File
- vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php, line 90
Class
- MockArraySessionStorage
- MockArraySessionStorage mocks the session for unit tests.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function start() {
if ($this->started) {
return true;
}
if (empty($this->id)) {
$this->id = $this
->generateId();
}
$this
->loadSession();
return true;
}