private function compareUri(string $routeUri, string $requestUri, array &$parameters): bool
    {
        $pattern = '@^'.$this->regexUri($routeUri).'$@';

        return preg_match($pattern, $requestUri, $parameters);
    }
private function compareUri(string $routeUri, string $requestUri, array &$parameters): bool
    {
        $pattern = '@^'.$this->regexUri($routeUri).'$@';

        return preg_match($pattern, $requestUri, $parameters);
    }
private function compareUri ( string $ routeUri , string $ requestUri , array & $ parameters ) : bool { $ pattern = '@^' . $ this -> regexUri ( $ routeUri ) . '$@' ; return preg_match ( $ pattern , $ requestUri , $ parameters ) ; }
Check if given request uri matches given uri method

@param string $routeUri
@param string $requestUri
@param array $parameters
@return bool
Check if given request uri matches given uri method