Beispiel #1
0
 public function __construct()
 {
     defined('DS') || define('DS', DIRECTORY_SEPARATOR);
     $this->request = Request::createFromGlobals();
 }
Beispiel #2
0
 /**
  * Run de application
  */
 public function run(Request $request = null)
 {
     if (empty($request)) {
         $request = Request::createFromGlobals();
     }
     $response = $this->handle($request);
     $response->send();
 }