Welcome Guest, Not a member yet? Register   Sign In
Route Middleware
#3

(06-25-2016, 09:19 PM)ciadmin Wrote: Hmm - loaded question. By any conventional or enterprise definition, CodeIgniter *is* middleware.

There is, however, PSR-7 (HTTP message interfaces) and/or PSR-15 (HTTP middleware) from PHP-FIG.

These are not the same thing!

We have discussed this in the council, and do not feel that PSR-7 is consistent with CodeIgniter's goals of being lightweight. CodeIgniter is intended to be extensible, however, and there is nothing to stop a developer from adding a PSR-7 implementation or bridge to their application.

Bottom line: there are no plans to implement PSR-7 in CodeIgniter 4.

Sorry, I could have been much more clear. I was referring to http middleware as seen in Silex, Laravel, and Slim. The routing middleware can be very convenient.

I completely understand trying to keep it lightweight. Thank you for the response.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply


Messages In This Thread
Route Middleware - by albertleao - 06-25-2016, 09:01 PM
RE: Route Middleware - by ciadmin - 06-25-2016, 09:19 PM
RE: Route Middleware - by albertleao - 06-25-2016, 09:32 PM
RE: Route Middleware - by kilishan - 06-25-2016, 09:48 PM
RE: Route Middleware - by albertleao - 06-25-2016, 10:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB