-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
RFC
| Q | A |
|---|---|
| Proposed Version(s) | 4.0.0 |
| BC Break? | Yes |
Goal
The Laminas Router component still requires the laminas/http Package. The goal is to have a clear Interface that could be used for the match Method without guessing the required methods
Background
the getUri Method is only available in the laminas/http Request.
The same problem exists for other Route Implementations.
If i want to use laminas-router without laminas-http i need to create a new class that will implement the stdlib RequestInterface and also need to check the whole Laminas-Router code to collect all necessary methods that will be called via method_exists
Proposal(s)
- Use a PSR Request Interface instead of the Laminas Stdlib RequestInterface?
- Provide a LaminasRouter Request Interface with all required Methods and provide an Mapper that will convert a Laminas stdLib Request / Psr Request to a LaminasRouterRequest
Reactions are currently unavailable