Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface::getBag
Gets a SessionBagInterface by name.
Signature
public function getBag(string
$name )
Parameters
$name
— string
Returns
- SessionBagInterface
Errors/Exceptions
-
InvalidArgumentException
- If the bag does not exist