Releases: Elao/PhpEnums
v1.5.0
This releases brings a new HTTP Kernel enum resolver to transform a request parameter into an enum instance in controller arguments.
[c76106a] minor #60 Fix return type in ValueToEnumTransformer::transform (@ostrolucky)
[0c6569c] feature #59 Add EnumValueResolver (@ostrolucky)
[576a2fe] minor #63 Fix deprecations & update travis for new Sf & PHP versions (@ogizanagi)
[6b8b6b2] minor #62 Enhance README.md a bit (@ogizanagi)
[49ecce2] minor #61 Update php-cs-fixer v2.12 & add @compiler_optimized native func rule (@ogizanagi)
v1.4.1
v1.4.0
Mainly brings the choice enums concept and Symfony Form integrations enhancements.
Changelog
[7ac0c29] minor #42 Fix cs-fixer config (@ogizanagi)
[ea73095] minor #43 Use native sql type (@nervo)
[7fb3966] feature #48 Add ScalarToEnumTransformer (@ostrolucky)
[52c6306] feature #50 Allow usage of FCQN instead of aliases in Faker provider (@ostrolucky)
[c575970] feature #49 Add ChoiceEnumTrait & SimpleChoiceEnum (@ogizanagi)
[5c487f4] bug #53 Fix Autodiscovered values must only be int or string (@ogizanagi)
[eeeaf12] minor #54 Fix EA extended inspections (@ogizanagi)
[f34537f] feature #55 Add EnumType choices_as_enum_values option (@ogizanagi)
[2863118] minor #56 Rename ScalarToEnumTransformer to ValueToEnumTransformer (@ogizanagi)
v1.3.0
This release brings official Symfony 4.0 support.
Features
[36da43d] feature #38 Update symfony 4 compatibility (@benji07, @ogizanagi)
Minor
[e9095a6] minor #40 Update cs-fixer & rules (@ogizanagi)
[527629c] minor #41 Minor deps changes (@ogizanagi)
v1.2.1
v1.2.0
This release mainly introduces a VarDumper caster for enums:
HTML | CLI |
---|---|
Features
[1e06d8d] Add a VarDumper caster (@ogizanagi)
Misc
[5325521] Remove old date in copyright and php cs fixer config (@NicolasDievart)
v1.1.1
Bug fix
[0206253] AutoDiscoveredValuesTrait: do only autodiscover public constants (@ogizanagi)
Documentation
[2cee949] Fix Nelmio/Alice tag for Faker provider (@xavier-rdo)
v1.1.0
Feature
[92bb0e6] Provide a Faker Enum Provider Bridge (@xavier-rdo)
[d2af391] Base FlaggedEnum::readables() implementation (@ogizanagi)
[7e6766c] Add an AutoDiscoveredValuesTrait to automatically guess values from constants (@ogizanagi)
Misc
[9800a9e] Replaced mixed to int|string where appropriate (@ogizanagi)
[86b538d] Update travis and dependencies (@ogizanagi)
v1.0.0
v0.5.0
Feature
[d04a1a6] Add Symfony Validator Enum constraint (@ogizanagi)
Bug fix
[8adc873] FlaggedEnum::accepts should not throw any exception (@ogizanagi)
Documentation
[741ec7f] Mention the multiton pattern (@ogizanagi)
[0255514] Add PHP7 requirement badge (@xavier-rdo)
Misc
[35445d9] Use null coalescing operator (@ogizanagi)