Skip to content
PHP Ecosystem
Explore

RequestDataNormalizer

API reference › Debug Core › Panel › Request › RequestDataNormalizer

final classPHPForge\Debug\Panel\Request\RequestDataNormalizer
Sourcesrc/Panel/Request/RequestDataNormalizer.php

Narrows the request snapshot payload (alongside the controller summary array) into the typed RequestView the detail view consumes.

MethodDescriptionDefined by
fromPanelData() staticBuilds the typed RequestView from the captured request data and the manifest entry.RequestDataNormalizer
public static function fromPanelData(array<array-key, mixed> $data, PHPForge\Debug\Storage\RequestSummary|null $summary): PHPForge\Debug\Panel\Request\RequestView

Builds the typed RequestView from the captured request data and the manifest entry.

Parameters

ParameterTypeDescription
$dataarray<array-key, mixed>Captured request data exposed by RequestSnapshot.
$summaryPHPForge\Debug\Storage\RequestSummary|nullManifest entry for the loaded capture, when available.

Returns

RequestView