<?php

declare(strict_types=1);

namespace PpPhp\Core\Maintenance\Services;

use PpPhp\Core\Maintenance\Engine\MaintenanceEngine;
use PpPhp\Core\Maintenance\Providers\ManifestBasicsProvider;
use PpPhp\Core\Maintenance\Providers\PlatformBasicsProvider;

final class MaintenanceKernel
{
    public static function default(): MaintenanceEngine
    {
        $engine = new MaintenanceEngine();

        $engine->providers()->register(new PlatformBasicsProvider());
        $engine->providers()->register(new ManifestBasicsProvider());

        return $engine;
    }
}
