Skip to content

v4.0.0

Compare
Choose a tag to compare
@yann-eugone yann-eugone released this 11 Jul 09:26
· 6 commits to 4.x since this release
01744ff

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