Skip to content

Releases: yokai-php/enum-bundle

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)

v3.0.0

08 Jul 09:46
cdfbce5
Compare
Choose a tag to compare

Changelog (v2.2...v3.0.0)

  • strict type everything
  • classes in namespace Yokai\EnumBundle\Enum moved to Yokai\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

26 Jun 12:14
Compare
Choose a tag to compare
v3.0.0-alpha.2 Pre-release
Pre-release

Changelog (v3.0.0-alpha...v3.0.0-alpha.2)

  • hotfix services ids and tag names