Reference

Application Lifecycle

HTTP and CLI bootstrap and the places where the application extends the framework.

HTTP request flow

An HTTP request enters through public/index.php, creates ApplicationContext, builds the Kernel, loads configuration, registers providers and routes, runs middleware, resolves the controller, and sends a PSR-7 response.

CLI flow

CLI starts through vendor/bin/lemonade, creates the application context, boots CliKernel, loads shared and CLI configuration, registers providers, and runs the selected command.

Stable extension points

Stable application extension points are YAML modules, app/Config/Routing.php, app/Config/Commands.yaml, Providers.yaml, and bindings in AppServiceProvider.