Skip to content
PHP Ecosystem
Explore

PhpInfoAction

API reference › Yii3 Debug › Action › PhpInfoAction

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

Serves the Debug Core phpinfo page.

MethodDescriptionDefined by
__construct()Creates the phpinfo() endpoint inside the shared debugger page.PhpInfoAction
__invoke()Renders the phpinfo() page inside the debugger shell.PhpInfoAction
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 phpinfo() endpoint inside the shared debugger page.

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 phpinfo() page inside the debugger shell.

Parameters

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

Returns

Psr\Http\Message\ResponseInterface: Rendered phpinfo() page.