Major versions of Yii Router and Yii Routere FastRoute Adapter adapter package were released.
Yii Router
- Change
UrlGeneratorInterfacecontract: on URL generation all unused arguments must be moved to query parameters, if query parameter with such name doesn't exist - Add debug collector for
yiisoft/yii-debug - Add
$hashparameter toUrlGeneratorInterfacemethods:generate(),generateAbsolute()andgenerateFromCurrent() - Replace two
RouteCollectorInterfacemethodsaddRoute()andaddGroup()to singleaddRoute() - Make
Route,GroupandMatchingResultdispatcher-independent - Bump minimum PHP version to 8.1
- Change PHP constraint in
composer.jsonto~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 - Add URL arguments' psalm type in
UrlGeneratorInterface - Mark readonly properties
- Explicitly mark nullable parameters
FastRoute Adapter
- Bump minimal PHP version to 8.1 and minor refactoring
- Change PHP constraint in
composer.jsonto8.1 - 8.4 - Adapt to
yiisoft/routerversion^4.0 - Add
UrlGeneratorhost and scheme properties to package config params - Use FQN for built-in PHP functions