Overview of initialization and bootstrap
To run the Commerce application, the following actions are implemented in :
- Include , which performs essential initialization routines such as error handling, initializing the autoloader, setting profiling options, and setting the default timezone.
- Create an instance of
- Create a Commerce application instance:
- Run Commerce
Bootstrap run logic
uses the following algorithm to run the Commerce application:
-
Initializes the error handler.
-
Creates the and basic shared services that are used everywhere and are affected by the environment. The environment parameters are injected properly into these objects.
-
Asserts that maintenance mode is not enabled; otherwise, terminates.
-
Asserts that the Commerce application is installed; otherwise