-
Receive request from Client browser to Apache
-
Apache loads PHP and runs "bootstrap.php"
-
"bootstrap.php" creates $app = new Spin();
- BOOTSTRAP PHASE:
- Register Framework Global Helper Functions
- Load Config
- Load Factories
- Cache Factory
- HTTP Factory
- Container Factory
- Event Factory
- Connections Factory
- Create HTTP Server Request, Response
- Populate Server Request with data
- BOOTSTRAP PHASE:
-
"bootstrap.php" code:
- Register "User" Global Functions
-
"bootstrap.php" calls $app->run();
- Match Route
- Execute Global Before Middlewares
- Execute Route Specific Before Middlewares
- Load & Call Controller->handle()
- Execute Route Specific After Middlewares
- Execute Global After Middlewares
- Match Route
-
Send response to Client