Skip to content

Middleware

Attribute to declare middleware metadata for auto-registration.

class Middleware

SourceMiddleware/Attribute/Middleware.php
PropertyTypeDescription
$after?``string
$before?``string
$enabledbool
$phasestring
$priorityint

public function __construct(string $phase = 'pre', int $priority = 0, ?string $before = null, ?string $after = null, bool $enabled = true): mixed

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

Returns mixed