Releases: Setono/sylius-static-contexts-bundle
Releases · Setono/sylius-static-contexts-bundle
v2.0.0
Changelog
2.0.0
Breaking Changes
- Minimum PHP version raised from 8.1 to 8.2
- Dropped Symfony 5.4 support; now requires Symfony ^6.4 || ^7.4
- Dropped Sylius v1 support; now requires Sylius v2 (
sylius/channel ^2.0,sylius/locale ^2.0) - Dropped
symfony/service-contractsv1/v2 support; now requires ^3.0
Changed
- Replaced Psalm with PHPStan (level 9 + strict-rules, symfony, phpunit, deprecation-rules, and prophecy extensions)
- Converted service configuration from XML to PHP (
config/services.xml→config/services.php) due toXmlFileLoaderbeing deprecated in Symfony 7.4 - Upgraded to
setono/code-quality-pack^3.1 - Upgraded to PHPUnit 11
- Upgraded Rector to v2 with
UP_TO_PHP_82ruleset - Updated CI matrix to PHP 8.2/8.3/8.4 and Symfony ~6.4.0/~7.4.0
- Updated GitHub Actions to latest major versions (checkout v6, composer-install v4, codecov v6)
Added
- Usage documentation and requirements section in README
- Tests for
reset()and null-unsetting on both context classes - DI extension test verifying service registration and tag priorities
- Bundle class test
Migration Guide
No code changes are needed if you are already using the bundle's public API (StaticChannelContext and StaticLocaleContext). The interfaces and behavior are identical between v1 and v2 — this is purely a dependency and tooling upgrade.
To upgrade, ensure your application meets the new requirements (PHP 8.2+, Symfony 6.4+, Sylius v2) and run:
composer require setono/sylius-static-contexts-bundle:^2.0For projects that must remain on Sylius v1 or PHP 8.1, use the 1.x branch.
Full Changelog: v1.0.0...v2.0.0