public static function resolveSiteFromArray($siteArray, $useDomainAlias = false)
    {
        $site = new Site();

        return self::resolveSiteContextObject($site, $siteArray, $useDomainAlias);

    }
public static function resolveSiteFromArray($siteArray, $useDomainAlias = false)
    {
        $site = new Site();

        return self::resolveSiteContextObject($site, $siteArray, $useDomainAlias);

    }
public static function resolveSiteFromArray ( $ siteArray , $ useDomainAlias = false ) { $ site = new Site ( ) ; return self :: resolveSiteContextObject ( $ site , $ siteArray , $ useDomainAlias ) ; }
Creates a Site object from an array originating from the environments.xml

@static
@param  $siteArray
@param bool $useDomainAlias
@return
Creates a Site object from an array originating from the environments . xml