[news] Yii User 2.3


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 to UrlGeneratorInterface methods: generate(), generateAbsolute() and generateFromCurrent()
  • Replace two RouteCollectorInterface methods addRoute() and addGroup() to single addRoute()
  • Make Route, Group and MatchingResult 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 to 8.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