function Session::getBag
Overrides SessionInterface::getBag
2 calls to Session::getBag()
- Session::getAttributeBag in vendor/
symfony/ http-foundation/ Session/ Session.php - Gets the attributebag interface.
- Session::getFlashBag in vendor/
symfony/ http-foundation/ Session/ Session.php - Gets the flashbag interface.
File
-
vendor/
symfony/ http-foundation/ Session/ Session.php, line 199
Class
- Session
- @author Fabien Potencier <fabien@symfony.com> @author Drak <drak@zikula.org>
Namespace
Symfony\Component\HttpFoundation\SessionCode
public function getBag(string $name) : SessionBagInterface {
$bag = $this->storage
->getBag($name);
return method_exists($bag, 'getBag') ? $bag->getBag() : $bag;
}