lib/Routing/Route.php
public function matchesPattern(Request $request)
    {
        if (preg_match($this->regexPattern, $request->getRequestUri()) <= 0) {
            return false;
        }

        return true;
    }
public function matchesPattern(Request $request)
    {
        if (preg_match($this->regexPattern, $request->getRequestUri()) <= 0) {
            return false;
        }

        return true;
    }
public function matchesPattern ( Request $ request ) { if ( preg_match ( $ this -> regexPattern , $ request -> getRequestUri ( ) ) <= 0 ) { return false ; } return true ; }
Matches a request against the pattern configured on this route.

@param Request $request
@return bool
Matches a request against the pattern configured on this route .