Middleware Flow

The graph below demonstrates a default flow between DotKernel's middlewares.

ErrorHandlerInterface
Request
Request
Response Response
Request Response
Other Middlewares (Optional)
Request
Request
Response Response
Request Response
CorsMiddleware
Request
Request
Response Response
Request Response
RouteMiddleware
Request
Request
Route
Response Response
Request Response
AuthenticationMiddleware
Request
Request
Route
Response Response
Request Response
AuthorizationMiddleware
Request
Request
Route
Response Response
Request Response
Other Middlewares (Optional)
Request
Request
Route
Response Response
Request Response
UrlHelperMiddleware
Request
Request
Route
Response Response
Request Response
DispatchMiddleware
Request
Request
Route
Response Response
Request Response
NotFoundHandler (Fallback)
Request
Request
Route
Response Response