예제 #1
0
파일: App.php 프로젝트: aredridel/fw
 public function run()
 {
     $req = Request::createInstance($_REQUEST, $_SERVER);
     $res = Response::createInstance();
     if (!($r = $this($req, $res, null))) {
         $res->setStatusCode("404 Not Found");
         $res->setHeader("Content-Type", "text/plain");
         $res->write("Not Found");
     }
     $res->send();
 }