create(Session::class, isset($_SESSION) ? $_SESSION : array()); $this->setSession($session); $this->pushCurrent(); $request = new HTTPRequest('GET', '/'); $this->setRequest($request); $this->setResponse(new HTTPResponse()); $this->doInit(); } }