# Bootstrap

> Bootstraps response normalization for Yii2 requests carrying the Inertia protocol marker.

[API reference](/docs/api/index.md) › [Inertia](/docs/extensions/inertia/reference/index.md) › Bootstrap

| final class | `yii\inertia\Bootstrap` |
| --- | --- |
| Implements | [`yii\base\BootstrapInterface`](/docs/api/yii/base/bootstrapinterface/index.md) |
| Source | [`src/Bootstrap.php`](https://github.com/yii2-extensions/inertia/blob/main/src/Bootstrap.php#L18) |

Bootstraps response normalization for Yii2 requests carrying the Inertia protocol marker.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`bootstrap()`](#method-bootstrap) | Registers the adapter and attaches response normalization for Inertia web requests. | `Bootstrap` |

## Method details

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

```php
public function bootstrap(yii\base\Application $app): void
```

Registers the adapter and attaches response normalization for Inertia web requests.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$app` | [`yii\base\Application`](/docs/api/yii/base/application/index.md) |  |