Skip to content

Releases: legatus-php/router

v0.3.1

12 Feb 12:39
c67989c
Compare
Choose a tag to compare

Fixes a small bug on rendering exceptions

v0.3.0

31 Oct 14:36
Compare
Choose a tag to compare

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

09 Aug 10:29
0e5e1ef
Compare
Choose a tag to compare

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 of Legatus\Http\Router::create()

Additions

  • Now, Legatus\Http\Router::getParams() will return the params from the request.

v0.1.0

25 Jul 15:42
822ee3f
Compare
Choose a tag to compare

Initial release with basic features