Skip to content
PHP Ecosystem
Explore

ConfigAction

API reference › Yii3 Debug › Action › ConfigAction

final readonly classYii3\Debug\Action\ConfigAction
ImplementsDebugActionInterface
Sourcesrc/Action/ConfigAction.php

Serves the live Yii configuration page and captured extension panels.

MethodDescriptionDefined by
__construct()Creates the live configuration endpoint with its manifest, optional retained snapshot, and shared page renderer.ConfigAction
__invoke()Renders the live configuration page for the capture the query parameters select.ConfigAction
public function __construct(PHPForge\Debug\Storage\SnapshotStore $store, Yii3\Debug\Web\DebugPageRenderer $renderer, Psr\Http\Message\ResponseFactoryInterface $responseFactory, Psr\Http\Message\StreamFactoryInterface $streamFactory)

Creates the live configuration endpoint with its manifest, optional retained snapshot, and shared page renderer.

Parameters

ParameterTypeDescription
$storePHPForge\Debug\Storage\SnapshotStoreStore the captured snapshots are read from.
$rendererYii3\Debug\Web\DebugPageRendererRenderer producing the debugger page markup.
$responseFactoryPsr\Http\Message\ResponseFactoryInterfaceFactory building the PSR-7 response.
$streamFactoryPsr\Http\Message\StreamFactoryInterfaceFactory building the PSR-7 response body.
public function __invoke(Psr\Http\Message\ServerRequestInterface $request): Psr\Http\Message\ResponseInterface

Renders the live configuration page for the capture the query parameters select.

Parameters

ParameterTypeDescription
$requestPsr\Http\Message\ServerRequestInterfaceIncoming request carrying the query parameters.

Returns

Psr\Http\Message\ResponseInterface: Rendered page, or a 404 response when the capture is missing.