public function absoluteURIFor(UriInterface $uri, $route, array $params = [], array $query = [])
    {
        $path = $this->uriFor($route, $params);

        return (string) $uri
            ->withUserInfo('')
            ->withPath($path)
            ->withQuery(http_build_query($query))
            ->withFragment('');
    }
public function absoluteURIFor(UriInterface $uri, $route, array $params = [], array $query = [])
    {
        $path = $this->uriFor($route, $params);

        return (string) $uri
            ->withUserInfo('')
            ->withPath($path)
            ->withQuery(http_build_query($query))
            ->withFragment('');
    }
public function absoluteURIFor ( UriInterface $ uri , $ route , array $ params = [ ] , array $ query = [ ] ) { $ path = $ this -> uriFor ( $ route , $ params ) ; return ( string ) $ uri -> withUserInfo ( '' ) -> withPath ( $ path ) -> withQuery ( http_build_query ( $ query ) ) -> withFragment ( '' ) ; }
Get the absolute URL for a given route name.
You must provide the current request Uri to retrieve the scheme and host.

@param UriInterface $uri
@param string $route
@param array $params
@param array $query

@return string
Get the absolute URL for a given route name . You must provide the current request Uri to retrieve the scheme and host .