[TASK] Add type converter for core types like Enumeration
* Fixed a major bug in Enumeration in the isValid function to prevent PHP typeloose comparison hell and added Tests * Added a CoreTypeInterface that can be used in the extbase data mapper to map properties to new core types like the enumeration Resolves: #52762 Releases: 6.2 Change-Id: I966c64ae8a82d13bdcb47c41917da98c48f0b475 Reviewed-on: https://review.typo3.org/24708 Reviewed-by: Marc Bastian Heinrichs Tested-by: Marc Bastian Heinrichs Reviewed-by: Sascha Egerer Reviewed-by: Stefan Neufeind Reviewed-by: Thomas Maroschik Tested-by: Thomas Maroschik
Showing
- typo3/sysext/core/Classes/Type/Enumeration.php 14 additions, 8 deletionstypo3/sysext/core/Classes/Type/Enumeration.php
- typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php 1 addition, 1 deletion...asses/Type/Exception/InvalidEnumerationValueException.php
- typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php 33 additions, 0 deletions...Classes/Type/Exception/InvalidValueExceptionInterface.php
- typo3/sysext/core/Classes/Type/TypeInterface.php 44 additions, 0 deletionstypo3/sysext/core/Classes/Type/TypeInterface.php
- typo3/sysext/core/Tests/Unit/Type/EnumerationTest.php 63 additions, 9 deletionstypo3/sysext/core/Tests/Unit/Type/EnumerationTest.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php 3 additions, 0 deletionstypo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php 17 additions, 0 deletions...extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php 3 additions, 0 deletions...se/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
- typo3/sysext/extbase/Classes/Property/TypeConverter/CoreTypeConverter.php 74 additions, 0 deletions...base/Classes/Property/TypeConverter/CoreTypeConverter.php
- typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php 10 additions, 0 deletionstypo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php
- typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php 1 addition, 1 deletion...3/sysext/extbase/Classes/Validation/ValidatorResolver.php
- typo3/sysext/extbase/ext_localconf.php 1 addition, 0 deletionstypo3/sysext/extbase/ext_localconf.php
Please register or sign in to comment