Skip to content
PHP Ecosystem
Explore

Bootstrap

API reference › Inertia › Bootstrap

final classyii\inertia\Bootstrap
Implementsyii\base\BootstrapInterface
Sourcesrc/Bootstrap.php

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

MethodDescriptionDefined by
bootstrap()Registers the adapter and attaches response normalization for Inertia web requests.Bootstrap
public function bootstrap(yii\base\Application $app): void

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

Parameters

ParameterTypeDescription
$appyii\base\Application