<?php
/**
 * Activation handler.
 *
 * @package SubmissionInbox
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Handles plugin activation.
 */
class SUBIN_Activator {
	/**
	 * Run activation tasks.
	 *
	 * @return void
	 */
	public static function activate() {
		SUBIN_Database::install_or_upgrade();
		SUBIN_SettingsRepository::ensure_defaults();
		( new \SUBIN\Cloud\SiteIdentity() )->get();
		\SUBIN\Retention\RetentionService::schedule();
		\SUBIN\Cloud\CloudSyncService::schedule();
	}
}
