Requests
Every requests that comes into system gets processed in this order:
- Request is passed from your web server to
public/index.php
- Framework get's initial mandatory configuration and initializes all mandatory stuff for the request cycle, such as paths, autoloader, error handler, shutdown stuff, log(s) and etc.
- Then
\Koldy\Application::run()
is called which takes the previously prepared configurations and initializes instance of the route class defined in mandatory configuration underrouting_class
- the route class then takes over the request and everything else is under routing class control.
This doesn't apply on CLI scripts.
What happens next depends about route and its options, even error handling. You can find all available routes here.