Major versions of Yii Router and Yii Routere FastRoute Adapter adapter package were released.
Yii Router
- Change
UrlGeneratorInterface
contract: 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
$hash
parameter toUrlGeneratorInterface
methods:generate()
,generateAbsolute()
andgenerateFromCurrent()
- Replace two
RouteCollectorInterface
methodsaddRoute()
andaddGroup()
to singleaddRoute()
- Make
Route
,Group
andMatchingResult
dispatcher-independent - Bump minimum PHP version to 8.1
- Change PHP constraint in
composer.json
to~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.json
to8.1 - 8.4
- Adapt to
yiisoft/router
version^4.0
- Add
UrlGenerator
host and scheme properties to package config params - Use FQN for built-in PHP functions