src/Model/ApiResourceBase.php
protected function makeAbsoluteUrl($relativeUrl, $baseUrl = null)
    {
        $baseUrl = $baseUrl ?: $this->baseUrl;
        if (empty($baseUrl)) {
            throw new \RuntimeException('No base URL');
        }
        $base = \GuzzleHttp\Psr7\uri_for($baseUrl);

        return $base->withPath($relativeUrl)->__toString();
    }
protected function makeAbsoluteUrl($relativeUrl, $baseUrl = null)
    {
        $baseUrl = $baseUrl ?: $this->baseUrl;
        if (empty($baseUrl)) {
            throw new \RuntimeException('No base URL');
        }
        $base = \GuzzleHttp\Psr7\uri_for($baseUrl);

        return $base->withPath($relativeUrl)->__toString();
    }
protected function makeAbsoluteUrl ( $ relativeUrl , $ baseUrl = null ) { $ baseUrl = $ baseUrl ? : $ this -> baseUrl ; if ( empty ( $ baseUrl ) ) { throw new \ RuntimeException ( 'No base URL' ) ; } $ base = \ GuzzleHttp \ Psr7 \ uri_for ( $ baseUrl ) ; return $ base -> withPath ( $ relativeUrl ) -> __toString ( ) ; }
Make a URL absolute, based on the base URL.

@param string $relativeUrl
@param string $baseUrl

@return string
Make a URL absolute based on the base URL .