Releases: yokai-php/enum-bundle
Releases · yokai-php/enum-bundle
v4.1.0
What's Changed
- Add support for PHP 8.1 native enums by @yann-eugone in #56
- Fixed github tests badge by @yann-eugone in #58
- Convert enum objects into scalar values during form submission by @yann-eugone in #57
Full Changelog: v4.0.3...v4.1.0
v4.0.3
What's Changed
- Initialize enum array in EnumRegistry to avoid TypeError when empty by @yann-eugone in #54
Full Changelog: v4.0.2...v4.0.3
v4.0.2
What's Changed
- Fix Choice annotation/attribute constructor args changing with Symfony versions by @yann-eugone & @ggabrovski in #53
Full Changelog: v4.0.1...v4.0.2
v4.0.1
What's Changed
- Allow Symfony 6.0 & Updated tests according to changes by @yann-eugone in #51
Full Changelog: v4.0.0...v4.0.1
v4.0.0
Changelog (v3.3.0...v4.0.0
)
- changed
EnumInterface::getChoices
method return logic (flipped values and labels) - added
EnumInterface::getValues
method : must return all possible values for enum - added
EnumInterface::getLabel
method : must return a label for an enum value - removed
AbstractTranslatedEnum
class : useTranslatedEnum
instead - removed
ConfigurableTranslatedEnum
class : useTranslatedEnum
instead - added
Enum
class : extends this base class for easy implementation - removed
CannotExtractConstantsException
class : useLogicException
instead - removed
InvalidTranslatePatternException
class : useLogicException
instead - removed
InvalidEnumException
class : useInvalidArgumentException
instead - removed
DuplicatedEnumException
class : useLogicException
instead - removed
InvalidEnumValueException
class : useInvalidArgumentException
instead - removed
enum_label
twig function : useenum_label
twig filter instead - added
enum_values
twig function : fetch possible enum values - changed enum base classes constructor arguments order
- added integration with
myclabs/php-enum
: see doc - added documentation about upgrading from standard symfony : see doc
Please read upgrade note : UPGRADE-4.x.md
v3.3.0
Changelog (v3.2.0...v3.3.0
)
- added
EnumInterface::getLabel
method (#37 by @yann-eugone)
v3.2.0
Changelog (v3.1.0...v3.2.0
)
- added support for PHP 8.0 (#38 by @yann-eugone)
v3.1.0
Changelog (v3.0.0...v3.1.0
)
- added support for Symfony 5.1 Compound constraint in form type guess (#36 by @yann-eugone)
v3.0.0
Changelog (v2.2...v3.0.0
)
- strict type everything
- classes in namespace
Yokai\EnumBundle\Enum
moved toYokai\EnumBundle
- removed deprecated compiler passes
- removed deprecated configuration
- moved some dependencies to suggestions
- added configurable enums with convention based constant extraction
- updated documentation according to recent practices
- dropped support of
symfony < 4.4
- dropped support of
PHP < 7.1
- use github actions instead of travis
- code style as library dependency
- use phpunit 9.x
- new semver convention :
x.y.z
v3.0.0-alpha.2
Changelog (v3.0.0-alpha...v3.0.0-alpha.2
)
- hotfix services ids and tag names