示例#1
0
 /**
  * Creation d'un nouveau dispatcher
  * @param null|Request $request
  */
 public function __construct(\Router\Request $request = null)
 {
     if ($request === null) {
         require_once __DIR__ . "/Request.php";
         $request = new \Router\Request();
     }
     $this->request = $request;
     $this->method = $request->getMethod();
 }