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