[TASK] Extract ValidatorClassNameResolver from ValidatorResolver 52/59952/4
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sat, 9 Mar 2019 10:23:14 +0000 (10:23 +0000)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 15 Mar 2019 15:24:20 +0000 (16:24 +0100)
commita7415f0b2ab79238b895f6463e3ad28d00d4c368
treec91e040635b4d68db377d0aa9b5629722780255b
parent2d833568730dfac6edc833400800326b8cecaf8e
[TASK] Extract ValidatorClassNameResolver from ValidatorResolver

The ValidatorResolver contained a method for resolving validator
class names. Extbase supports various shorthand notations to
make the life of developers more easy. There are notations like:

- NotEmpty
- TYPO3.CMS.Extbase:NotEmpty
- CustomExtension:ValidatorName

Resolving these notations takes place in a dedicated
ValidatorClassNameResolver class now.

Releases: master
Resolves: #87868
Change-Id: Ib0d57127a0e1dc4ae0536a8e76ca497f6d2bd56d
Reviewed-on: https://review.typo3.org/c/59952
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Classes/Reflection/ClassSchema.php
typo3/sysext/extbase/Classes/Validation/ValidatorClassNameResolver.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php
typo3/sysext/extbase/Tests/Fixture/ValidatorThatDoesNotImplementValidatorInterfaceValidator.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Validation/ValidatorResolverTest.php
typo3/sysext/extbase/Tests/Unit/Validation/ValidatorClassNameResolverTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/Validation/ValidatorResolverTest.php [deleted file]