Releases: amphp/http-server-router
Releases · amphp/http-server-router
2.0.0
This release is compatible with amphp/http-server@^3
.
- A PSR-3 logger is now required in the
Router
constructor - Starting the server with an empty
Router
is now allowed and only logs a notice instead of throwing an exception - Middleware can be added via
addMiddleware()
instead ofstack()
- Removed support for adding middleware directly via
addRoute()
, usestackMiddleware()
instead if you need this - Removed
Router::onStart()
, as it's now internally registered - Removed support for
ServerObserver
, as it's been removed fromamphp/http-server
2.0.0 Beta 4
- Update for compatibility with
amphp/http-server@v3
2.0.0 Beta 3
- Update for compatibility with
amphp/http-server@v3-beta.8
2.0.0 Beta 2
- Update for compatibility with
amphp/http@v2
2.0.0 Beta 1
- Allow
amphp/http-server@^3
- Removed
Router::onStart()
, as it's now internally registered - Removed support for
ServerObserver
, as it's been removed fromamphp/http-server