ConfigAction
API reference › Yii3 Debug › Action › ConfigAction
Serves the live Yii configuration page and captured extension panels.
Methods
Section titled “Methods”| Method | Description | Defined 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 |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”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
| Parameter | Type | Description |
|---|---|---|
$store | PHPForge\ | Store the captured snapshots are read from. |
$renderer | Yii3\ | Renderer producing the debugger page markup. |
$responseFactory | Psr\ | Factory building the PSR-7 response. |
$streamFactory | Psr\ | Factory building the PSR-7 response body. |
__invoke()
Section titled “__invoke() ”public function __invoke(Psr\Http\Message\ServerRequestInterface $request): Psr\Http\Message\ResponseInterfaceRenders the live configuration page for the capture the query parameters select.
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Psr\ | Incoming request carrying the query parameters. |
Returns
Psr\Http\Message\ResponseInterface: Rendered page, or a 404 response when the capture is missing.