Middleware Flow
The graph below demonstrates a default flow between DotKernel's middlewares.
ErrorHandlerInterface
Request
Response
Other Middlewares (Optional)
Request
Response
CorsMiddleware
Request
Response
RouteMiddleware
Request
Response
AuthenticationMiddleware
Request
Response
AuthorizationMiddleware
Request
Response
Other Middlewares (Optional)
Request
Response
UrlHelperMiddleware
Request
Response
DispatchMiddleware
Request
Response
NotFoundHandler (Fallback)
Request
Response