src/Urls/UrlBuilder.php
public function setBaseUrl($baseUrl)
    {
        if (substr($baseUrl, 0, 2) === '//') {
            $baseUrl = 'http:'.$baseUrl;
            $this->isRelativeDomain = true;
        }

        $this->baseUrl = rtrim($baseUrl, '/');
    }
public function setBaseUrl($baseUrl)
    {
        if (substr($baseUrl, 0, 2) === '//') {
            $baseUrl = 'http:'.$baseUrl;
            $this->isRelativeDomain = true;
        }

        $this->baseUrl = rtrim($baseUrl, '/');
    }
public function setBaseUrl ( $ baseUrl ) { if ( substr ( $ baseUrl , 0 , 2 ) === '//' ) { $ baseUrl = 'http:' . $ baseUrl ; $ this -> isRelativeDomain = true ; } $ this -> baseUrl = rtrim ( $ baseUrl , '/' ) ; }
Set the base URL.
@param string $baseUrl The base URL.
Set the base URL .