src/SiteConfig/ConfigBuilder.php
public function buildFromUrl($url, $addToCache = true)
    {
        // extract host name
        $host = parse_url($url, PHP_URL_HOST);

        return $this->buildForHost((string) $host, $addToCache);
    }
public function buildFromUrl($url, $addToCache = true)
    {
        // extract host name
        $host = parse_url($url, PHP_URL_HOST);

        return $this->buildForHost((string) $host, $addToCache);
    }
public function buildFromUrl ( $ url , $ addToCache = true ) { // extract host name $ host = parse_url ( $ url , PHP_URL_HOST ) ; return $ this -> buildForHost ( ( string ) $ host , $ addToCache ) ; }
Build a config file from an url.
Use `buildForHost` if you already have the host.

@param string $url
@param bool   $addToCache

@return SiteConfig
Build a config file from an url . Use buildForHost if you already have the host .