public static function initByRealmObject( StaticRealmDto $realm, array $customSettings = [] )
	{
		self::setSettings([
			self::SET_ENDPOINT => $realm->cdn . "/",
			self::SET_VERSION  => $realm->dd,
		]);

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

		self::$initialized = true;
	}
public static function initByRealmObject( StaticRealmDto $realm, array $customSettings = [] )
	{
		self::setSettings([
			self::SET_ENDPOINT => $realm->cdn . "/",
			self::SET_VERSION  => $realm->dd,
		]);

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

		self::$initialized = true;
	}
public static function initByRealmObject ( StaticRealmDto $ realm , array $ customSettings = [ ] ) { self :: setSettings ( [ self :: SET_ENDPOINT => $ realm -> cdn . "/" , self :: SET_VERSION => $ realm -> dd , ] ) ; if ( ! empty ( $ customSettings ) ) self :: setSettings ( $ customSettings ) ; self :: $ initialized = true ; }
Creates new instance from Realm object.

@param StaticRealmDto $realm
@param array          $customSettings
Creates new instance from Realm object .