# DebugActionInterface

> Contract every debugger endpoint implements, so the request handler resolves them without the application router.

[API reference](/docs/api/index.md) › [Yii3 Debug](/docs/extensions/yii3-debug/reference/index.md) › [Action](/docs/extensions/yii3-debug/reference/action/index.md) › DebugActionInterface

| interface | `Yii3\Debug\Action\DebugActionInterface` |
| --- | --- |
| Source | [`src/Action/DebugActionInterface.php`](https://github.com/yii3/debug/blob/main/src/Action/DebugActionInterface.php#L12) |

Implemented by 7 types:

- [`CompareAction`](/docs/extensions/yii3-debug/reference/action/compareaction/index.md)
- [`ConfigAction`](/docs/extensions/yii3-debug/reference/action/configaction/index.md)
- [`DbExplainAction`](/docs/extensions/yii3-debug/reference/action/dbexplainaction/index.md)
- [`DownloadMailAction`](/docs/extensions/yii3-debug/reference/action/downloadmailaction/index.md)
- [`HistoryAction`](/docs/extensions/yii3-debug/reference/action/historyaction/index.md)
- [`PhpInfoAction`](/docs/extensions/yii3-debug/reference/action/phpinfoaction/index.md)
- [`ToolbarDataAction`](/docs/extensions/yii3-debug/reference/action/toolbardataaction/index.md)

Contract every debugger endpoint implements, so the request handler resolves them without the application router.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__invoke()`](#method-__invoke) abstract | Serves one debugger endpoint. | `DebugActionInterface` |

## Method details

### __invoke() <span id="method-__invoke"></span>

```php
abstract public function __invoke(Psr\Http\Message\ServerRequestInterface $request): Psr\Http\Message\ResponseInterface
```

Serves one debugger endpoint.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$request` | `Psr\Http\Message\ServerRequestInterface` | Request reaching the debugger endpoint. |

**Returns**

`Psr\Http\Message\ResponseInterface`: Response produced for the endpoint.