Bootstrapping
Bootstrapping
Bootstrapping refers to the process of preparing the environment before an application starts to resolve and process an incoming request. Bootstrapping is done in two places: the entry script and the application.
In the entry script, class autoloaders for different libraries are registered. This includes the Composer autoloader through its autoload.php
file and the Yii autoloader through its Yii
class file. The entry script then loads the application configuration and creates an application instance.
In the constructor of the application, the following bootstrapping work is done: