Skip to content

Releases: yokai-php/enum-bundle

v5.0.1

05 Sep 10:07
17c8b5b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.0...v5.0.1

v5.0.0

27 Aug 09:41
0528648
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.1.0...v5.0.0

v4.1.0

18 Aug 14:32
323c155
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.3...v4.1.0

v4.0.3

28 Mar 12:22
e051412
Compare
Choose a tag to compare

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

21 Feb 08:56
8e56a65
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.1...v4.0.2

v4.0.1

23 Dec 13:46
e98614b
Compare
Choose a tag to compare

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

11 Jul 09:26
01744ff
Compare
Choose a tag to compare

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 : use TranslatedEnum instead
  • removed ConfigurableTranslatedEnum class : use TranslatedEnum instead
  • added Enum class : extends this base class for easy implementation
  • removed CannotExtractConstantsException class : use LogicException instead
  • removed InvalidTranslatePatternException class : use LogicException instead
  • removed InvalidEnumException class : use InvalidArgumentException instead
  • removed DuplicatedEnumException class : use LogicException instead
  • removed InvalidEnumValueException class : use InvalidArgumentException instead
  • removed enum_label twig function : use enum_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

24 May 12:28
b0c3944
Compare
Choose a tag to compare

Changelog (v3.2.0...v3.3.0)

v3.2.0

10 May 12:36
89143e5
Compare
Choose a tag to compare

Changelog (v3.1.0...v3.2.0)

v3.1.0

28 Sep 12:44
17e669f
Compare
Choose a tag to compare

Changelog (v3.0.0...v3.1.0)

  • added support for Symfony 5.1 Compound constraint in form type guess (#36 by @yann-eugone)