HTTP runtime and routing
The HTTP kernel passes a PSR-7 request through PSR-15 middleware. The router then selects an explicitly mapped controller action.
The resulting response travels back through the middleware pipeline, which can still modify it before it is emitted.
Routing documentation