Skip to content
PHP Ecosystem
Explore

ConfigSnapshot

API reference › Debug Core › Panel › Config › ConfigSnapshot

final readonly classPHPForge\Debug\Panel\Config\ConfigSnapshot
ImplementsPHPForge\Debug\Storage\PanelSnapshot
Uses traitsPHPForge\Debug\Storage\ArrayPayloadSnapshot
Sourcesrc/Panel/Config/ConfigSnapshot.php

Canonical Configuration panel snapshot.

MethodDescriptionDefined by
__construct() finalCreates a snapshot from a tagged dynamic payload.PHPForge\Debug\Storage\ArrayPayloadSnapshot
capture() staticCaptures arbitrary array values in a JSON-safe snapshot.PHPForge\Debug\Storage\ArrayPayloadSnapshot
data()Returns the captured configuration payload.ConfigSnapshot
fromArray() staticHydrates a dynamic payload from decoded JSON data.PHPForge\Debug\Storage\ArrayPayloadSnapshot
jsonSerialize()Returns the tagged payload for JSON serialization.PHPForge\Debug\Storage\ArrayPayloadSnapshot
payloadKey() protected staticReturns the key under which the configuration payload is stored.ConfigSnapshot
public function data(): array<array-key, mixed>

Returns the captured configuration payload.

Returns

array<array-key, mixed>: Captured application, PHP, and extension configuration.

protected static function payloadKey(): string

Returns the key under which the configuration payload is stored.

Returns

string: Payload key.