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.
Synopsis
Section titled “Synopsis”final class RequestMatchedEvent extends Event
| Extends | Event |
| Source | Event/Lifecycle/RequestMatchedEvent.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$action | string | readonly. |
$module | string | readonly. |
$outputType | string | readonly. |
$request | ServerRequestInterface | readonly. |
$routeName | ?``string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(ServerRequestInterface $request, string $module, string $action, ?string $routeName, string $outputType): mixed
| Parameter | Type | Description |
|---|---|---|
$request | ServerRequestInterface | |
$module | string | |
$action | string | |
$routeName | ?``string | |
$outputType | string |
Returns mixed