To get the diff for a specific change, go to https://github.com/webfactory/polyglot-bundle/commit/XXX where XXX is the change hash. To get the diff between two versions, go to https://github.com/webfactory/polyglot-bundle/compare/{oldversion}...{newversion}.
- Support for annotation-based configuration of translation properties has been removed. Switch to attribute-based configuration, which has been added in 3.1.0.
- Classes from the
Webfactory\Bundle\PolyglotBundle\Attributenamespace are nowfinal.
- The annotations
\Webfactory\Bundle\PolyglotBundle\Annotation\Locale,\Webfactory\Bundle\PolyglotBundle\Annotation\Translatableand\Webfactory\Bundle\PolyglotBundle\Annotation\TranslationCollectionhave been deprecated. Replace them with the corresponding PHP attributes from the\Webfactory\Bundle\PolyglotBundle\Attributenamespace. - Using annotations to configure entity classes for this bundle has been deprecated. Switch to PHP 8 attributes.
- Attribute classes will be made
finalin the next major release.
- Dropped support for PHP versions below 8.1, and for Symfony versions before 5.4.
- Classes internal to this bundle are now marked as
final. Static analysis tools should be able to pick up@finalannouncements used as of v2.5.0.
- Introduced method
isTranslatedInto($locale)to theTranslatableInterface. The bundled implementations are enhanced accordingly, but if you have a custom implementation of TranslatableInterface, you'll need to update it.
- Changed priority for the Doctrine listener to -100 to defer injection of translation objects. That should make it possible to mark fields as translatable that have their value managed by other Doctrine extensions. (GitHub PR #6)
- Support for Symfony 3
- Dropped support for PHP < 5.5