Skip to content

MiddlewarePhase

Canonical ordering of the phase values accepted by Quiote\Middleware\Attribute\Middleware.

Phase is the primary sort key for MiddlewareOrderResolver — it groups middleware into the same coarse bands the framework’s hard-coded pipeline has always used, with before/after edges and priority refining order within/across those bands.

final class MiddlewarePhase

Since1.0.0
SourceMiddleware/Compiler/MiddlewarePhase.php
ConstantValueDescription
ORDER['bootstrap', 'pre_routing', 'pre', …]
MethodDescription
rank(string $phase): int

public static function rank(string $phase): int

ParameterTypeDescription
$phasestring

Returns int

ThrowsWhen
InvalidArgumentExceptionif $phase isn’t one of self::ORDER