PhpInfoAction
API reference › Yii3 Debug › Action › PhpInfoAction
Serves the Debug Core phpinfo page.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the phpinfo() endpoint inside the shared debugger page. | PhpInfoAction |
__invoke() | Renders the phpinfo() page inside the debugger shell. | PhpInfoAction |
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 phpinfo() endpoint inside the shared debugger page.
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 phpinfo() page inside the debugger shell.
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Psr\ | Incoming request carrying the query parameters. |
Returns
Psr\Http\Message\ResponseInterface: Rendered phpinfo() page.