public function fullUrlFor(UriInterface $uri, $routeName, array $data = [], array $queryParams = [])
    {
        $path = $this->urlFor($routeName, $data, $queryParams);
        $scheme = $uri->getScheme();
        $authority = $uri->getAuthority();
        $protocol = ($scheme ? $scheme . ':' : '') . ($authority ? '//' . $authority : '');

        return $protocol . $path;
    }
public function fullUrlFor(UriInterface $uri, $routeName, array $data = [], array $queryParams = [])
    {
        $path = $this->urlFor($routeName, $data, $queryParams);
        $scheme = $uri->getScheme();
        $authority = $uri->getAuthority();
        $protocol = ($scheme ? $scheme . ':' : '') . ($authority ? '//' . $authority : '');

        return $protocol . $path;
    }
public function fullUrlFor ( UriInterface $ uri , $ routeName , array $ data = [ ] , array $ queryParams = [ ] ) { $ path = $ this -> urlFor ( $ routeName , $ data , $ queryParams ) ; $ scheme = $ uri -> getScheme ( ) ; $ authority = $ uri -> getAuthority ( ) ; $ protocol = ( $ scheme ? $ scheme . ':' : '' ) . ( $ authority ? '//' . $ authority : '' ) ; return $ protocol . $ path ; }
Get fully qualified URL for named route

@param UriInterface $uri
@param string $routeName
@param array $data Named argument replacement data
@param array $queryParams Optional query string parameters

@return string

@throws RuntimeException         If named route does not exist
@throws InvalidArgumentException If required data not provided
Get fully qualified URL for named route