public function MockArraySessionStorage::registerBag in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage::registerBag()
Registers a SessionBagInterface for use.
Parameters
SessionBagInterface $bag:
Overrides SessionStorageInterface::registerBag
File
- vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php, line 189
Class
- MockArraySessionStorage
- MockArraySessionStorage mocks the session for unit tests.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function registerBag(SessionBagInterface $bag) {
$this->bags[$bag
->getName()] = $bag;
}