[FEATURE] Add configuration options to FloatConverter 29/47829/3
authorNicole Cordes <typo3@cordes.co>
Wed, 20 Apr 2016 21:41:35 +0000 (23:41 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 21 Apr 2016 12:20:57 +0000 (14:20 +0200)
commitf3077c994e9788293cfb49c9cff9d0138ea72d62
tree28c5c7d25a6d3e6e1d72b02a4c11e629c2069dc5
parent207df6adda0892f7857eec75752c6d1dabc5c780
[FEATURE] Add configuration options to FloatConverter

Converting a string to a float value needs some specific format of the
string (no thousand separator and '.' as decimal point).

So it should be possible to define some pre-sanitation for the
FloatConverter to be able to convert strings like 123,42 to float.

This patch introduces configuration options and sanitizes the string
before parsing it to float.

Resolves: #75827
Releases: master
Change-Id: I716a5a6d3b7dd4f9f8dd0f01db850a2ee82cd376
Reviewed-on: https://review.typo3.org/47829
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Feature-75827-AddConfigurationOptionsToFloatConverter.rst [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/FloatConverter.php
typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/FloatConverterTest.php