src/Contao/SessionStorage.php
private function load()
    {
        if (\count($this->attributes)) {
            return;
        }

        $sessionBag         = $this->session->getBag($this->getSessionBagKey());
        $databaseSessionBag = $this->session->getBag($this->getDatabaseSessionBagKey());

        $this->attributes = \array_merge(
            (array) $sessionBag->get($this->getScope()),
            (array) $databaseSessionBag->get($this->getScope())
        );
    }
private function load()
    {
        if (\count($this->attributes)) {
            return;
        }

        $sessionBag         = $this->session->getBag($this->getSessionBagKey());
        $databaseSessionBag = $this->session->getBag($this->getDatabaseSessionBagKey());

        $this->attributes = \array_merge(
            (array) $sessionBag->get($this->getScope()),
            (array) $databaseSessionBag->get($this->getScope())
        );
    }
private function load ( ) { if ( \ count ( $ this -> attributes ) ) { return ; } $ sessionBag = $ this -> session -> getBag ( $ this -> getSessionBagKey ( ) ) ; $ databaseSessionBag = $ this -> session -> getBag ( $ this -> getDatabaseSessionBagKey ( ) ) ; $ this -> attributes = \ array_merge ( ( array ) $ sessionBag -> get ( $ this -> getScope ( ) ) , ( array ) $ databaseSessionBag -> get ( $ this -> getScope ( ) ) ) ; }
Load the data from the session if it has not been loaded yet.

@return void
Load the data from the session if it has not been loaded yet .