Releases: legatus-php/router
Releases · legatus-php/router
v0.3.1
v0.3.0
This release is almost a complete rewrite of the internals of the router and a simplification of it's api.
Now the Router is not a PSR-15 Middleware anymore but a RequestHandler, and the handlers for the routes are handlers too.
Now there is no more autoresolving and autoinjecting stuff. RoutingContext
is the class to extract parameters from the Request and any other required state. Also, stack
is a new function to stack MiddlewareInterfaces
on top of a RequestHandler
which builds a pipeline of some sorts really, and for that reason the legatus/middleware-queue
package is no longer a dependency of the router.
v0.2.0
We are happy to announce the 0.2.0 release of Legatus Router.
This is a backward compatible release.
Deprecations
- Function
Legatus\Http\create_router()
has been deprecated in favor ofLegatus\Http\Router::create()
Additions
- Now,
Legatus\Http\Router::getParams()
will return the params from the request.
v0.1.0
Initial release with basic features