public function dispatch(string $httpMethod, string $uri) : array
    {
        $urlPath = rawurldecode(parse_url($uri, PHP_URL_PATH));
        $routeInfo = $this->routeDispatcher->dispatch($httpMethod, $urlPath);
        return $routeInfo;
    }
public function dispatch(string $httpMethod, string $uri) : array
    {
        $urlPath = rawurldecode(parse_url($uri, PHP_URL_PATH));
        $routeInfo = $this->routeDispatcher->dispatch($httpMethod, $urlPath);
        return $routeInfo;
    }
public function dispatch ( string $ httpMethod , string $ uri ) : array { $ urlPath = rawurldecode ( parse_url ( $ uri , PHP_URL_PATH ) ) ; $ routeInfo = $ this -> routeDispatcher -> dispatch ( $ httpMethod , $ urlPath ) ; return $ routeInfo ; }
Dispatches HTTP request and returns route information.

@param string $httpMethod
@param string $uri
@return array
Dispatches HTTP request and returns route information .