Registers a SessionBagInterface with the session.
Parameters
SessionBagInterface $bag:
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/SessionInterface.php, line 191
Class
- SessionInterface
- Interface for the session.
Namespace
Symfony\Component\HttpFoundation\Session
Code
public function registerBag(SessionBagInterface $bag);