Contao\CoreBundle\EventListener\UserSessionListener::getSessionBag PHP Method

getSessionBag() private method

Returns the session bag.
private getSessionBag ( ) : Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface
return Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface
    private function getSessionBag()
    {
        if ($this->isBackendScope()) {
            $name = 'contao_backend';
        } else {
            $name = 'contao_frontend';
        }
        /** @var AttributeBagInterface $bag */
        $bag = $this->session->getBag($name);
        return $bag;
    }