private getSessionBag ( ) : Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface | ||
리턴 | 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;
}