RequestRoutingViewFactory
API reference › Yii3 Debug › Routing › RequestRoutingViewFactory
Adapts captured Yii routing state and the live route collection to the framework-neutral Request view.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
fromRequestData() static | Composes the Request routing view from the captured payload and the live route collection. | RequestRoutingViewFactory |
Method details
Section titled “Method details”fromRequestData()
Section titled “fromRequestData() ”public static function fromRequestData(array<array-key, mixed> $data, Yiisoft\Router\RouteCollectionInterface|null $routes): PHPForge\Debug\Panel\Request\Routing\RequestRoutingViewComposes the Request routing view from the captured payload and the live route collection.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | array<array-key, | Captured Request panel data. |
$routes | Yiisoft\ | Live route collection, or null when it cannot be resolved. |
Returns
PHPForge\Debug\Panel\Request\Routing\RequestRoutingView: Composed view of the current route and the application route inventory.