public static function initByVersion( string $version, array $customSettings = [] )
	{
		self::setSettings([
			self::SET_VERSION  => $version,
			self::SET_ENDPOINT => self::getCdnUrl(),
		]);

		if (!empty($customSettings))
			self::setSettings($customSettings);

		self::$initialized = true;
	}
public static function initByVersion( string $version, array $customSettings = [] )
	{
		self::setSettings([
			self::SET_VERSION  => $version,
			self::SET_ENDPOINT => self::getCdnUrl(),
		]);

		if (!empty($customSettings))
			self::setSettings($customSettings);

		self::$initialized = true;
	}
public static function initByVersion ( string $ version , array $ customSettings = [ ] ) { self :: setSettings ( [ self :: SET_VERSION => $ version , self :: SET_ENDPOINT => self :: getCdnUrl ( ) , ] ) ; if ( ! empty ( $ customSettings ) ) self :: setSettings ( $ customSettings ) ; self :: $ initialized = true ; }
Creates new instance by specifying CDN version.

@param string $version
@param array  $customSettings
Creates new instance by specifying CDN version .