HistoryAction
API reference › Yii3 Debug › Action › HistoryAction
Serves the captured request history grid.
Methods
Section titled “Methods”| Method | Description | Defined 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 |
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 request-history endpoint for snapshots retained by the store.
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 captured request history, filtered and paginated by the query parameters.
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Psr\ | Incoming request carrying the query parameters. |
Returns
Psr\Http\Message\ResponseInterface: Rendered history page.