<?php
declare(strict_types=1);

namespace Core;

/**
 * Tiny middleware contract: handle($context) — returns null to continue,
 * or calls exit/redirect/json to short-circuit the request.
 *
 * Context shape: ['kind' => 'web'|'api', 'controller' => string, 'action' => string]
 */
interface Middleware
{
    public function handle(array $context): void;
}
