Skip to content
Corex

StubRenderer

Corex\Cli\Generators\StubRenderer · class · CLI layer

Renders a stub by substituting {{ token }} placeholders. Any placeholder left unresolved after substitution is an error, so a stub/value mismatch fails loudly instead of writing a broken file (spec FR-001, FR-003).

render(string $stub, array $values): string

Section titled “render(string $stub, array $values): string”