<?php
/**
 * ComptaFlow UK by MeeTempo - Backup Actions
 * Version 1.0.0
 * 
 * Handles backup downloads
 */
namespace ComptaFlowUK\Admin\Actions;
use ComptaFlowUK\Services\BackupService;
defined('ABSPATH') || exit;
class BackupActions {
    
    /**
     * Initialise hooks
     */
    public static function boot(): void {
        add_action('admin_post_comptaflow_uk_backup_download', [self::class, 'handleDownload']);
    }
    
    /**
     * Handle download
     */
    public static function handleDownload(): void {
        BackupService::download();
    }
}
