public function getBaseUrl($path)
    {
        if (1 === \count($this->baseUrls)) {
            return $this->baseUrls[0];
        }

        return $this->baseUrls[$this->chooseBaseUrl($path)];
    }
public function getBaseUrl($path)
    {
        if (1 === \count($this->baseUrls)) {
            return $this->baseUrls[0];
        }

        return $this->baseUrls[$this->chooseBaseUrl($path)];
    }
public function getBaseUrl ( $ path ) { if ( 1 === \ count ( $ this -> baseUrls ) ) { return $ this -> baseUrls [ 0 ] ; } return $ this -> baseUrls [ $ this -> chooseBaseUrl ( $ path ) ] ; }
Returns the base URL for a path.

@param string $path

@return string The base URL
Returns the base URL for a path .