<?php
declare(strict_types=1);

namespace App\Middleware;

use App\Core\Middleware\MiddlewareInterface;
use App\Core\Request;
use App\Core\Response;

final class AuditMiddleware implements MiddlewareInterface
{
    public function handle(Request $request, callable $next): Response
    {
        // Audit hooks are registered in Audit/bootstrap.php via Database callbacks
        // and EventBus listeners. This middleware is available for future explicit
        // audit needs (e.g., logging sensitive data views, exports, prints).
        // Currently it passes through — the actual audit logging is done
        // automatically by the database hook system.

        return $next($request);
    }
}