# RequestRoutingView

> Routing diagnostics composed into the framework-neutral Request panel.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Request](/docs/extensions/debug-core/reference/panel/request/index.md) › [Routing](/docs/extensions/debug-core/reference/panel/request/routing/index.md) › RequestRoutingView

| final readonly class | `PHPForge\Debug\Panel\Request\Routing\RequestRoutingView` |
| --- | --- |
| Source | [`src/Panel/Request/Routing/RequestRoutingView.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Request/Routing/RequestRoutingView.php#L10) |

Routing diagnostics composed into the framework-neutral Request panel.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-current"></span>`$current` readonly constructor | [`CurrentRouteView`](/docs/extensions/debug-core/reference/panel/request/routing/currentrouteview/index.md) | Current route view. | `RequestRoutingView` |
| <span id="property-inventory"></span>`$inventory` readonly constructor | [`RouteInventoryView`](/docs/extensions/debug-core/reference/panel/request/routing/routeinventoryview/index.md)`\|null` | Route inventory view, or null if not available. Default: `null`. | `RequestRoutingView` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates routing diagnostics for the Request panel. | `RequestRoutingView` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(PHPForge\Debug\Panel\Request\Routing\CurrentRouteView $current, PHPForge\Debug\Panel\Request\Routing\RouteInventoryView|null $inventory = null)
```

Creates routing diagnostics for the Request panel.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$current` | [`CurrentRouteView`](/docs/extensions/debug-core/reference/panel/request/routing/currentrouteview/index.md) | Current route view. |
| `$inventory` | [`RouteInventoryView`](/docs/extensions/debug-core/reference/panel/request/routing/routeinventoryview/index.md)`\|null` | Route inventory view, or null if not available. |