Ejemplo n.º 1
0
 /**
  * 执行application
  *
  * @access public
  * @return mixed
  */
 public function run()
 {
     $req = req();
     if (!in_array($req->method(), static::$support_method)) {
         throw HttpError::not_implemented();
     }
     $url = parse_url($req->requestUri());
     return $this->dispatch($url['path']);
 }