Skip to content
PHP Ecosystem
Explore

RequestRoutingViewFactory

API reference › Yii3 Debug › Routing › RequestRoutingViewFactory

final classYii3\Debug\Routing\RequestRoutingViewFactory
Sourcesrc/Routing/RequestRoutingViewFactory.php

Adapts captured Yii routing state and the live route collection to the framework-neutral Request view.

MethodDescriptionDefined by
fromRequestData() staticComposes the Request routing view from the captured payload and the live route collection.RequestRoutingViewFactory
public static function fromRequestData(array<array-key, mixed> $data, Yiisoft\Router\RouteCollectionInterface|null $routes): PHPForge\Debug\Panel\Request\Routing\RequestRoutingView

Composes the Request routing view from the captured payload and the live route collection.

Parameters

ParameterTypeDescription
$dataarray<array-key, mixed>Captured Request panel data.
$routesYiisoft\Router\RouteCollectionInterface|nullLive 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.