Ejemplo n.º 1
0
 /**
  * @param ApplicationInterface $app
  */
 public function run(ApplicationInterface $app)
 {
     if (isset($_SERVER['REQUEST_URI'])) {
         $request = new HttpRequest($_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD']);
         $request->setGet($_GET);
         $request->setPost($_POST);
         $this->getApplication()->setRequest($request);
     } else {
         // TODO handle cli requests
     }
 }