
Bootstrap Execution Flow
📌 Bootstrap Execution Flow:
1️⃣ **index.php**
└ 📌 Entry point: Handles incoming requests and loads `bootstrap.php`.
2️⃣ **bootstrap.php** (Executed next)
├ 📌 **Loads `ErrorHandler.php` first** (to set up error handling).
├ 📌 Loads `ClassFileLoader.php` (to dynamically load core system classes).
├ 📌 Loads `ConfigFileLoader.php` (to load configuration settings).
└ 📌 Ensures all required classes exist before proceeding.
3️⃣ **ErrorHandler.php** (Executed inside `bootstrap.php`, loaded first)
├ 📌 Registers a **custom error handler** (`set_error_handler`).
├ 📌 Registers a **custom exception handler** (`set_exception_handler`).
└ 📌 Ensures proper error handling before other files are loaded.
4️⃣ **ClassFileLoader.php**
└ 📌 Dynamically loads necessary core system classes.
5️⃣ **ConfigFileLoader.php**
└ 📌 Loads and applies application configuration settings.
6️⃣ **Final Execution**
├ 📌 After loading all dependencies, the application continues execution.
├ 📌 Routes the request to the correct **controller** and **method**.
└ 📌 Processes the request and returns the response.