src/Client.php
protected function createUrl($url)
    {
        // is absolute URL?
        if (strpos($url, '://')) {
            return Url::createFromUrl($url);
        }

        // only query and path matters in relative url
        $url = Url::createFromUrl($url);
        $query = $this->baseUrl->getQuery();
        $path = $this->baseUrl->getPath();

        $query->modify($url->getQuery());
        $path->append($url->getPath());

        return $this->baseUrl->setQuery($query)->setPath($path);
    }
protected function createUrl($url)
    {
        // is absolute URL?
        if (strpos($url, '://')) {
            return Url::createFromUrl($url);
        }

        // only query and path matters in relative url
        $url = Url::createFromUrl($url);
        $query = $this->baseUrl->getQuery();
        $path = $this->baseUrl->getPath();

        $query->modify($url->getQuery());
        $path->append($url->getPath());

        return $this->baseUrl->setQuery($query)->setPath($path);
    }
protected function createUrl ( $ url ) { // is absolute URL? if ( strpos ( $ url , '://' ) ) { return Url :: createFromUrl ( $ url ) ; } // only query and path matters in relative url $ url = Url :: createFromUrl ( $ url ) ; $ query = $ this -> baseUrl -> getQuery ( ) ; $ path = $ this -> baseUrl -> getPath ( ) ; $ query -> modify ( $ url -> getQuery ( ) ) ; $ path -> append ( $ url -> getPath ( ) ) ; return $ this -> baseUrl -> setQuery ( $ query ) -> setPath ( $ path ) ; }
Creates a URL using the base URL

@param string|null|Url $url

@return Url
Creates a URL using the base URL