Skip to content
PHP Ecosystem
Explore

HistoryAction

API reference › Yii3 Debug › Action › HistoryAction

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

Serves the captured request history grid.

MethodDescriptionDefined by
__construct()Creates the request-history endpoint for snapshots retained by the store.HistoryAction
__invoke()Renders the captured request history, filtered and paginated by the query parameters.HistoryAction
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 request-history endpoint for snapshots retained by the store.

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 captured request history, filtered and paginated by the query parameters.

Parameters

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

Returns

Psr\Http\Message\ResponseInterface: Rendered history page.