Skip to content

Compiler

Everything under Quiote\Validator\Compiler.

ClassDescription
CompilationResultThe outcome of compiling one ValidatorSource through an emitter: the artifact (null if a fatal diagnostic prevented emission) plus every diagnostic recorded along the way.
FluentSourceEmitterEmits a ValidatorPlan as committable, opcacheable PHP source that returns a closure over Quiote\Validator\Compiler\Runtime\ValidatorBuilder — the same format a developer can hand-write for a validator that never had an XML config at all.
RuntimeDeclarationEmitterTurns a ValidatorPlan into the declaration a compiled validator config returns: the validators to build, in registration order, bucketed by the request method they apply to.
ValidatorCompilerPublic entrypoint for validator compilation, independent of any CLI.
ValidatorPlanBuilderWalks a parsed validators.xml document and builds a format-independent ValidatorPlan (see Quiote\Validator\Compiler\Ir).
ValidatorSourceA discovered (or explicitly given) validators.xml file, ready to be parsed into a ValidatorPlan.
ValidatorSourceLocatorFinds validators.xml files on disk, the same way ConfigCache resolves config_handlers.xml’s %core.module_dir%/*/Validate/*.xml pattern for ValidatorConfigHandler — except here the result is handed to a compiler, not compiled into the request-time cache.
InterfaceDescription
EmitterInterfaceA back-end that turns a format-independent ValidatorPlan into a committable/checkable PHP artifact (e.g.
NamespaceContents
Ir2 types
JsonSchema2 types
Runtime4 types