Skip to content

RequestMatchedEvent

Emitted by RoutingMiddleware immediately after a request is matched to a module/action, before the matched request is handed to the rest of the pipeline.

final class RequestMatchedEvent extends Event

ExtendsEvent
SourceEvent/Lifecycle/RequestMatchedEvent.php
PropertyTypeDescription
$actionstringreadonly.
$modulestringreadonly.
$outputTypestringreadonly.
$requestServerRequestInterfacereadonly.
$routeName?``stringreadonly.

public function __construct(ServerRequestInterface $request, string $module, string $action, ?string $routeName, string $outputType): mixed

ParameterTypeDescription
$requestServerRequestInterface
$modulestring
$actionstring
$routeName?``string
$outputTypestring

Returns mixed