Пример #1
0
 public function start($applicationRoot)
 {
     $this->applicationRoot = $applicationRoot;
     include $this->applicationRoot . "/../App/routes.php";
     $request = new Request();
     $request->setGet($_GET);
     $request->setPost($_POST);
     $request->setSession(new Session($_SESSION));
     $request->setUri($_SERVER["REQUEST_URI"]);
     $request->setRequestType($_SERVER['REQUEST_METHOD']);
     return $this->draw($request);
 }