Registers a SessionBagInterface for use.
Parameters
SessionBagInterface $bag:
Overrides SessionStorageInterface::registerBag
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MockArraySessionStorage.php, line 186
Class
- MockArraySessionStorage
- MockArraySessionStorage mocks the session for unit tests.
Namespace
Symfony\Component\HttpFoundation\Session\Storage
Code
public function registerBag(SessionBagInterface $bag) {
$this->bags[$bag
->getName()] = $bag;
}