<?php

/**
 * Update a package or the entire system
 */

QUI::getAjax()->registerFunction(
    'ajax_system_update',
    static function ($package): void {
        QUI::getPackageManager()->update($package);
    },
    ['package'],
    [
        'Permission::checkAdminUser',
        'quiqqer.system.update'
    ]
);
