public function Session::registerBag

Registers a SessionBagInterface with the session.

Parameters

SessionBagInterface $bag:

Overrides SessionInterface::registerBag

1 call to Session::registerBag()
Session::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php
Constructor.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php, line 230

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function registerBag(SessionBagInterface $bag) {
  $this->storage
    ->registerBag($bag);
}