You are here

public function SessionStorageInterface::getBag in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/SessionStorageInterface.php \Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface::getBag()

Gets a SessionBagInterface by name.

Parameters

string $name:

Return value

SessionBagInterface

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 126

Class

SessionStorageInterface
StorageInterface.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function getBag($name);