DispatcherType - Identifica el bus de eventos destino de un `#[Subscribe]`. Milpa opera con dos buses de eventos independientes (two-bus decision, F1):
- SYMFONY: el `EventDispatcherInterface` de Symfony, tipado por clase de evento.
Es el bus canónico del framework para eventos del ciclo de vida HTTP/Kernel
(Route matching, Request/Response, etc.).
- MILPA: el `MilpaEventDispatcherInterface`, pub/sub por nombre (string) con
soporte de wildcards, pensado para eventos dinámicos y de agentes IA donde
el nombre del evento no se conoce en tiempo de compilación.
Reemplaza el `?string` original de `Subscribe::$dispatcher` para eliminar el
silent typo misrouting (p.ej. `dispatcher: 'symfoni'` no fallaba, simplemente
caía al auto-detect).
DispatcherType::cases()
public static functioncases():array
DispatcherType::from()
public static functionfrom(string|int$value): static
Parameters
Parameters of from()
Name
Type
Description
$value
string|int
DispatcherType::tryFrom()
public static functiontryFrom(string|int$value): ?static