Slim icon indicating copy to clipboard operation
Slim copied to clipboard

Slim 5: Ensure that route attributes are always in the Request

Open akrabat opened this issue 2 years ago • 2 comments

With the way strategies are currently implement, route parameters are only sometimes set into the Request's attributes.

In Slim 5, we should ensure that they are always in there for consistency purposes and that strategies (if we choose to continue with them) only affect the signature of the callable.

akrabat avatar Aug 07 '23 13:08 akrabat

Hi! Read up on Slim over the last weekend and am probably going to use it in my project once I move frameworks. Would love to help out here if I can!

Is the idea behind this issue that the code behind this if statement should in fact run every time? If so, I can pick this up if it's worth tackling.

oddevan avatar Oct 15 '24 01:10 oddevan

This feature will added in Slim 5 as a new Middleware, see here.

odan avatar Oct 19 '24 08:10 odan