Esempio n. 1
0
 /**
  * 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;
 }