Contao\Session::__construct PHP Метод

__construct() защищенный Метод

Get the session data
protected __construct ( )
    protected function __construct()
    {
        if (PHP_SAPI == 'cli') {
            $this->session = new SymfonySession(new MockArraySessionStorage());
        } else {
            $this->session = \System::getContainer()->get('session');
        }
        $this->sessionBag = $this->session->getBag($this->getSessionBagKey());
    }