<?php

declare(strict_types=1);

namespace App\Framework\Router;

use App\Framework\Context\ContextType;
use App\Framework\DI\Initializer;

final readonly class EmptyCompiledRoutesInitializer
{
    /**
     * Stellt leere CompiledRoutes für Non-Web-Contexts bereit
     * MCP Tools und andere Services benötigen CompiledRoutes auch in CLI
     */
    #[Initializer(ContextType::CLI_SCRIPT, ContextType::CONSOLE, ContextType::WORKER, ContextType::TEST)]
    public function __invoke(): CompiledRoutes
    {
        return new CompiledRoutes([], [], []);
    }
}
