Skip to content

Middleware

Everything under Quiote\Middleware.

ClassDescription
AssetAggregationMiddlewareCollects legacy appended attributes like ‘css’ and ‘js’ from the Request (when using adapter) and exposes them as PSR request attributes assets.css and assets.js.
ContentNegotiationMiddlewareMinimal wrapper over middlewares/content-type.
CoreMiddlewareRegistryThe single declaration of the middleware the framework ships.
DispatchMiddlewareDispatchMiddleware runs the requested action.
ErrorHandlingMiddlewareCatches unhandled throwables from downstream middleware/action dispatch and produces a generic 500 (or mapped) response.
ExecutionTimeMiddlewareBasic execution timing middleware replacing ExecutionTimeFilter.
FinalizeMiddlewareFinalizeMiddleware (scaffold): end-of-request persistence for session/user.
FormPopulationMiddlewareApplies the modernized form population engine to PSR-7 responses so container-less requests still receive automatic form value and error message population.
MiddlewareCatalogMiddlewareCatalog stores enable/disable flags for middleware FQCNs, settable programmatically via MiddlewareCatalog::initialize() (tests, app bootstrap code), so the runtime pipeline builder can cheaply skip optional middlewares.
MiddlewarePipelineMiddlewarePipeline builds and caches the PSR-15 middleware chain; safe for worker reuse.
OutputTypeSyncMiddlewareSynchronizes the Controller’s current output type with the PSR request attribute ‘output_type’ after routing has resolved (and potentially overridden) it.
PayloadParsingMiddlewareUnified body parsing leveraging middlewares/payload.
RoutingMiddlewareExecutes Quiote routing and attaches module/action/outputType to PSR request attributes.
SecurityMiddlewareSecurity middleware: evaluates action security requirements and forwards unauthenticated/unauthorized requests to login/secure system actions.
SessionMiddlewareBootstrap-phase session wiring for the framework pipeline.
SlotMiddlewareSlotMiddleware: establishes a SlotStack in request attributes for nested slot/sub-action rendering.
StealthMiddlewareStrips framework-identifying response headers when core.stealth_mode is enabled: any X-Quiote-* header, plus the names listed in core.stealth_additional_headers (covers X-Powered-By, which doesn’t follow that prefix).
TelemetryMiddlewareOpens the root OpenTelemetry span for the request and records the headline resource measurements — wall time, CPU, memory — as both span attributes and OTel metrics.
TimingMiddlewareRecords timing spans for downstream middleware execution.
TraceMiddlewareCaptures names of executed middleware for debugging.
ValidationMiddlewareRuns validation before the action executes, and enforces that only validated parameters are reachable afterwards.
TraitDescription
RequestDiagnosticsSession and authentication state for a middleware’s debug lines.
NamespaceContents
Attribute1 type
Compiler5 types
Config1 type