function SessionStorageInterface::getBag
Gets a SessionBagInterface by name.
Throws
\InvalidArgumentException If the bag does not exist
2 methods override SessionStorageInterface::getBag()
- MockArraySessionStorage::getBag in vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php - Gets a SessionBagInterface by name.
- NativeSessionStorage::getBag in vendor/
symfony/ http-foundation/ Session/ Storage/ NativeSessionStorage.php - Gets a SessionBagInterface by name.
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ SessionStorageInterface.php, line 108
Class
- SessionStorageInterface
- StorageInterface.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function getBag(string $name) : SessionBagInterface;