src/UrlHandlers/UrlHandler.php
private function matchesRequest(Request $request, $currentUrlFragment = "")
    {
        // Some URL Handlers don't have a url at all in which case we assume they apply
        // before even considering the url.
        if ($this->url == "") {
            return true;
        }

        return (stripos($currentUrlFragment, $this->url) === 0);
    }
private function matchesRequest(Request $request, $currentUrlFragment = "")
    {
        // Some URL Handlers don't have a url at all in which case we assume they apply
        // before even considering the url.
        if ($this->url == "") {
            return true;
        }

        return (stripos($currentUrlFragment, $this->url) === 0);
    }
private function matchesRequest ( Request $ request , $ currentUrlFragment = "" ) { // Some URL Handlers don't have a url at all in which case we assume they apply // before even considering the url. if ( $ this -> url == "" ) { return true ; } return ( stripos ( $ currentUrlFragment , $ this -> url ) === 0 ) ; }
Returns true of this handler's URL allows it to consider a response for the request.

In general terms this means that the current URL begins with the URL this handler is registered to handle.
However more advanced handlers might use other aspects of the request instead of the URL to determine this.

@param Request $request
@param string $currentUrlFragment
@return bool
Returns true of this handler s URL allows it to consider a response for the request .