-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
I work with Moodle and we've been migrating out legacy app to use Slim over the past 2 years.
I've just been looking through the 5.x branch to see how much the changes there are going to impact us but I'm finding that there isn't much information. The git commits aren't much help either because most of the commits contain seemingly unrelated changes under the banner 'Add v5'.
In particular:
- the changelog notes about using middleware for custom route arguments with the removal of
Route::setArguments, but I can't actually see how you would do this without the Route. We useRoute::setArguments()within a validation middleware to remove undeclared parameters. - the
\Slim\Interfaces\RouteInterfaceis just gone. No discussion, no alternative, no mention in the changelog. This is something that we use as type hints within our application and there is no apparent alternative or replacement - no backwards compatibility available and no deprecation for many of these things (like
Route::setArgumentsand fetching the Route from the Request attributes). We're an open source project and while we will be able to fix many of these things in our core platform, our community plugins are going to struggle a lot more to support a wide range of versions
Is there a plan or any discussion for the v5 changes? I'm aware of https://github.com/slimphp/Slim/wiki/Slim-5-Road-Map but none of these breaking changes are mentioned there, and there is no discussion about these. I haven't (yet) found a discussion in the discource channel either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels