Releases
v2.0.0
Compare
Sorry, something went wrong.
No results found
2.0.0 - 2025-03-26
Added
Added support for placeholders in routes.
Added support for optional route parts.
RouteAlreadyExistsException
: thrown when adding a route that already exists.
More and better tests.
Changed
Switched to PHP 8.4 as a minimum requirement.
getUri()
now returns "/" if the request URI cannot be determined.
Router::getRoute()
now returns "GET /" if the request URI cannot be determined.
A LoggerInterface
object is now injected in the constructor.
A route that is already registered, can't be added again. This will throw a RouteAlreadyExistsException
.
More and more verbose logging messages.
The log message for a matching route is now issued before the callback is executed.
Updated all dependencies.
Removed
Removed LoggerAwareTrait
from Router
.
Security
Updated logging calls with proper PSR-3 placeholder replacement.
You can’t perform that action at this time.