src/Graviton/ProxyBundle/Controller/ProxyController.php
private function getHostWithScheme(UriInterface $url)
    {
        $target = new Uri();
        $target = $target
            ->withScheme($url->getScheme())
            ->withHost($url->getHost())
            ->withPort($url->getPort());

        return (string) $target;
    }
private function getHostWithScheme(UriInterface $url)
    {
        $target = new Uri();
        $target = $target
            ->withScheme($url->getScheme())
            ->withHost($url->getHost())
            ->withPort($url->getPort());

        return (string) $target;
    }
private function getHostWithScheme ( UriInterface $ url ) { $ target = new Uri ( ) ; $ target = $ target -> withScheme ( $ url -> getScheme ( ) ) -> withHost ( $ url -> getHost ( ) ) -> withPort ( $ url -> getPort ( ) ) ; return ( string ) $ target ; }
get host, scheme and port

@param string $url the url

@return string
get host scheme and port