private function backupUploadToStorages() { //check list of storages to upload if any $uploadToStorages = SGConfig::get('SG_BACKUP_SYNCHRONOUS_STORAGE_UPLOAD'); if (SGBoot::isFeatureAvailable('STORAGE') && $uploadToStorages) { while (count($this->queuedStorageUploads)) { $actionId = $this->queuedStorageUploads[0]; SGBackupStorage::getInstance()->startUploadByActionId($actionId); array_shift($this->queuedStorageUploads); } } }
private function backupUploadToStorages() { //check list of storages to upload if any $uploadToStorages = SGConfig::get('SG_BACKUP_SYNCHRONOUS_STORAGE_UPLOAD'); if (SGBoot::isFeatureAvailable('STORAGE') && $uploadToStorages) { foreach ($this->queuedStorageUploads as $actionId) { SGBackupStorage::getInstance()->startUploadByActionId($actionId); } } }