src/Application.php
public function getSession(): ISession
    {
        if ($this->session === null) {
            if (!isset($this->implicit['session'])) {
                throw new \RuntimeException('The default session storage was not set');
            }
            $this->session = new Session($this->getCollector()->getSessionHandler($this->implicit['session']));
        }

        return $this->session;
    }
public function getSession(): ISession
    {
        if ($this->session === null) {
            if (!isset($this->implicit['session'])) {
                throw new \RuntimeException('The default session storage was not set');
            }
            $this->session = new Session($this->getCollector()->getSessionHandler($this->implicit['session']));
        }

        return $this->session;
    }
public function getSession ( ) : ISession { if ( $ this -> session === null ) { if ( ! isset ( $ this -> implicit [ 'session' ] ) ) { throw new \ RuntimeException ( 'The default session storage was not set' ) ; } $ this -> session = new Session ( $ this -> getCollector ( ) -> getSessionHandler ( $ this -> implicit [ 'session' ] ) ) ; } return $ this -> session ; }
Returns a session storage

@return  ISession
Returns a session storage