RequestRoutingViewFactory
API reference › Debug › panels › request › RequestRoutingViewFactory
Adapts Yii2 request data, the captured URL-rule trace, and the live URL manager configuration to the shared Request routing view.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
fromRequestData() static | Builds the composed routing view without evaluating controller action maps. | RequestRoutingViewFactory |
Method details
Section titled “Method details”fromRequestData()
Section titled “fromRequestData() ”public static function fromRequestData(array<array-key, mixed> $data, PHPForge\Debug\Panel\Router\RouterSnapshot|null $snapshot, PHPForge\Debug\Storage\ExceptionSnapshot|null $error, yii\debug\models\router\RouterRules|null $routerRules = null): PHPForge\Debug\Panel\Request\Routing\RequestRoutingViewBuilds the composed routing view without evaluating controller action maps.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | array<array-key, | Captured Request panel data. |
$snapshot | PHPForge\ | Captured Router panel trace, when available. |
$error | PHPForge\ | Captured Router collector or hydration failure, when available. |
$routerRules | yii\| | Injected live URL-manager view model; primarily useful to avoid rescanning the manager when the caller already has it. |
Returns
PHPForge\Debug\Panel\Request\Routing\RequestRoutingView: Composed view of the current route and the application route inventory.