Skip to content

MiddlewareDefinition

The scanned contents of one #[Middleware] attribute, plus the class it was found on and where it was discovered — mirrors Quiote\Routing\Compiler\RouteDefinition’s role for #[Route].

final class MiddlewareDefinition

Since1.0.0
SourceMiddleware/Compiler/MiddlewareDefinition.php
PropertyTypeDescription
$after?``stringreadonly.
$before?``stringreadonly.
$enabledboolreadonly.
$fqcnstringreadonly.
$phasestringreadonly.
$priorityintreadonly.
$sourceRefstringreadonly.

public function __construct(string $fqcn, string $phase, int $priority, ?string $before, ?string $after, bool $enabled, string $sourceRef): mixed

ParameterTypeDescription
$fqcnstring
$phasestring
$priorityint
$before?``string
$after?``string
$enabledbool
$sourceRefstring

Returns mixed

MethodDescription
shortName(): stringShort class name, used to resolve before/after references given as bare class names.

public function shortName(): string

Short class name, used to resolve before/after references given as bare class names.

Returns string