<?php
declare(strict_types=1);
namespace App\Controllers;

use App\Core\Auth;
use App\Core\Controller;
use App\Core\Permission;
use App\Services\SecurityAuditIntegrityService;

final class SecurityAuditIntegrityController extends Controller
{
    public function index(): void
    {
        Auth::requireLogin();
        Permission::require('administration.permissions.view');
        $this->view('security/integrity', [
            'pageTitle' => 'Intégrité du journal de sécurité',
            'report' => (new SecurityAuditIntegrityService())->report(),
        ]);
    }
}
