You are here

public function Session::registerBag in Zircon Profile 8.0

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

Registers a SessionBagInterface with the session.

Parameters

SessionBagInterface $bag:

Overrides SessionInterface::registerBag

1 call to Session::registerBag()
Session::__construct in vendor/symfony/http-foundation/Session/Session.php
Constructor.

File

vendor/symfony/http-foundation/Session/Session.php, line 227

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

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