private function buildUrlWithHost($url, array $parameters)
    {
        return
            trim($this->host, '/') .
            '/' .
            ltrim(
                $this
                    ->urlGeneratorInterface
                    ->generate(
                        $url,
                        $parameters,
                        UrlGeneratorInterface::ABSOLUTE_PATH
                    ), '/'
            );
    }
private function buildUrlWithHost($url, array $parameters)
    {
        return
            trim($this->host, '/') .
            '/' .
            ltrim(
                $this
                    ->urlGeneratorInterface
                    ->generate(
                        $url,
                        $parameters,
                        UrlGeneratorInterface::ABSOLUTE_PATH
                    ), '/'
            );
    }
private function buildUrlWithHost ( $ url , array $ parameters ) { return trim ( $ this -> host , '/' ) . '/' . ltrim ( $ this -> urlGeneratorInterface -> generate ( $ url , $ parameters , UrlGeneratorInterface :: ABSOLUTE_PATH ) , '/' ) ; }
Given an url, return the complete route using host.

@param string $url        Url to be called
@param array  $parameters Parameters for the url construction

@return string Url
Given an url return the complete route using host .