-
Notifications
You must be signed in to change notification settings - Fork 1
PSR 15 and PSR 7
Debusschère Alexandre edited this page Aug 13, 2020
·
1 revision
The Borsch Framework follows PSR's recommendations.
Therefore:
- Routes must be handled by a PSR-15 Request Handler, taking a PSR-7 Server Request as unique parameter, and must return a PSR-7 Response.
- Middlewares must be handled by a PSR-15 Middleware, taking a PSR-7 Server Request and a PSR-15 Request Handler as parameters, and must return a PSR-7 Response.