public function matchRequestPath($requestPath)
    {
        foreach ([$requestPath, urlencode($requestPath), urldecode($requestPath)] as $path) {
            foreach ([$this->catch_path, urlencode($this->catch_path), urldecode($this->catch_path)] as $catch) {
                if ($this->pathMatcher($path, $catch)) {
                    return true;
                }
            }
        }

        return false;
    }
public function matchRequestPath($requestPath)
    {
        foreach ([$requestPath, urlencode($requestPath), urldecode($requestPath)] as $path) {
            foreach ([$this->catch_path, urlencode($this->catch_path), urldecode($this->catch_path)] as $catch) {
                if ($this->pathMatcher($path, $catch)) {
                    return true;
                }
            }
        }

        return false;
    }
public function matchRequestPath ( $ requestPath ) { foreach ( [ $ requestPath , urlencode ( $ requestPath ) , urldecode ( $ requestPath ) ] as $ path ) { foreach ( [ $ this -> catch_path , urlencode ( $ this -> catch_path ) , urldecode ( $ this -> catch_path ) ] as $ catch ) { if ( $ this -> pathMatcher ( $ path , $ catch ) ) { return true ; } } } return false ; }
Match Request Path against catch_path.

Several version of the request path will be checked in order to ensure different siutations can be handled.

@param string $requestPath
@return boolean
Match Request Path against catch_path .