Releases: hostnet/accessor-generator-plugin-lib
Updated Enumerator Accessor Generation
- Added compatibility for coorperation with the
entity-plugin-lib
(use of Traits) - Improved consistency in setting name: "name" is now "property" in the
Enumerator
annotation. - Updated readme & examples
Enumerator Accessor Generation
This version introduces accessor generation for enum-based parameters.
See the updated README.md for information and examples.
This version requires PHP 7.1.
We will continue supporting the 2.7.x version for the time being for bugfixes if PHP 7.1 is not available to you.
Allow Symfony 4
Updates composer json to allow Symfony 4.
Twig 2.0
Made generator use the short names for integer and boolean
A KeyRegistry class is now generated.
A KeyRegistry class is generated per directory of generated entities, containing the encryption key paths. Also added methods to add keys manually.
Updated twig/twig to ^1.28
Merge pull request #7 from msteltenpool/master Updated twig/twig to ^1.28.
encryption_alias to generate methods that encrypt and decrypt using provided keys
Due to https://bugs.php.net/bug.php?id=70438 the minimum requirement for PHP is now set at 7.0
Account for inheritance with custom type hint
When using a custom type hint on a collection and generate an add method, reflection on the object will not be able to access the private property of the parent class and when using reflection on the class type of the relation an exception will be thrown by PHP7.1 when the added object is of the type hinted type and does not implement or extends the real type, although the real type may implement the type hint type.
See test/Generator/PracticalVehicleOwnerTest.php for the different cases and how they are handled.