[FEATURE] Backport Object Type Converter from Flow 14/21114/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 3 May 2013 19:17:37 +0000 (21:17 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 27 May 2013 22:51:52 +0000 (00:51 +0200)
commit37c11069b069aea983097768677f7106eb543aa5
tree9f4fa6607b23d6704820d7b12a51f9ce46b002ed
parent772d7379e8f0368ae992923f3bd2cf5eda5b8a4c
[FEATURE] Backport Object Type Converter from Flow

In Flow there is a Type Converter which can map array sources
to not persistent objects. This is very useful if you need
transitional objects built from request arguments.

Backporting this converter needs some minor modifications
in the reflection service, which are included in this commit
as well as registering the new converter.

Resolves: #48548
Releases: 6.2

Change-Id: Ic88b732076ae19ece490cf1376b2d1bbcaf1ebff
Reviewed-on: https://review.typo3.org/21114
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Daniel Hürtgen
Tested-by: Daniel Hürtgen
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extbase/Classes/Property/PropertyMappingConfiguration.php
typo3/sysext/extbase/Classes/Property/TypeConverter/ObjectConverter.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Property/TypeConverter/PersistentObjectConverter.php
typo3/sysext/extbase/Classes/Reflection/ReflectionService.php
typo3/sysext/extbase/Tests/Fixture/ValueObject.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/ObjectConverterTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/PersistentObjectConverterTest.php
typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php
typo3/sysext/extbase/ext_localconf.php