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

I remember thinking about Middleware when I was working on Sprint's custom routing system a couple of years ago and came to one conclusion. In order for route middleware to really work effectively, you have to force the user to register all of their routes. Otherwise it works on some routes, but the more "traditional" method where the controller is discovered through URI segment matching, doesn't work with the middleware. So then you need a second solution for the controllers. At that point, it made more sense, in my mind, to just craft the solution for the controller.

I never did, though, for Sprint, but that's the only way I could really see it be effectively done for this framework. And that's not a bad thing, as it keeps it a little more explicit, though barely.
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