2 min readCalm pace · scan the outline anytime

Spiral composition root

DI / wiring only — Bootloaders.

Spiral composition root

Host: Spiral 3.17.x (PHP ≥ 8.1) · Researched 2026-08
One-shot: /apply/spiral.full.md · Short: /spiral

Bootloaders register bindings and interceptors — composition root.

public function boot(ContainerInterface $container): void
{
    // bind ports → adapters
}

Keep business rules out of bootloaders. Long-living RoadRunner workers make clean boundaries even more important (no request-scoped leakage into Domain statics).

Modular Hexagonal Domain-Driven Design
Core 1.0.0-draft