예제 #1
0
파일: Route.php 프로젝트: peehaa/pitchblade
 /**
  * Tries to match the current route against the request
  *
  * @param \PitchBlade\Network\Http\RequestData $request The request data
  *
  * @return boolean True when the route matches the request
  */
 public function matchesRequest(RequestData $request)
 {
     $pathParts = explode('/', trim($request->getPath(), '/'));
     if (!$this->doesMatch($this->path->getParts(), $pathParts)) {
         return false;
     }
     $this->processVariables($this->path->getParts(), $pathParts);
     return true;
 }