Skip to content
docsv0.1.1

BootstrapPhaseInterface

One ordered step of taking a fresh system to an operable state — schema, plugin registration, install hooks, migrations, seeds. The phase owns its own effect and throws on failure; the {@see BootstrapRunner} sequences phases fail-fast and turns each into a {@see PhaseResult}. Domain-blind: the runner knows nothing of what a phase does — the host supplies phases that touch Doctrine, the plugin registry, the kernel, etc. (mechanism here, content in the host — ADR-0023).

BootstrapPhaseInterface::name()

abstract public function name(): string

A short stable identifier for the phase (e.g. "schema", "rows").

BootstrapPhaseInterface::run()

abstract public function run(): void

Perform the phase's effect. MUST throw on failure so the runner can stop fail-fast.