<?php
namespace FuseCommerce\Hooks;
if ( ! defined( 'ABSPATH' ) ) exit;


class HooksFactory {

    private const HOOKS_CLASSES = ['ActionEnqueueScripts', 'ActionAdminMenu', 'ActionAjax', 'FilterCronSchedules', 
    'ActionCron', 'ActionShortcodes', 'ActionRestApi', 'ActionSettings'];

    static function registerHooks(): void {

        foreach (self::HOOKS_CLASSES as $className) {
            $classFull = 'FuseCommerce\Hooks\\' . $className;
            if (class_exists($classFull) && method_exists($classFull, 'register')) {
                $classFull::register();
            }
        }
    }
}