Feature #33862
a shorthand for custom validators
Status: | Resolved | Start date: | 2012-02-12 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Stefan Neufeind | % Done: | 100% |
|
Category: | Validation | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
Instead of using the fully qualified classname (which is long) Extbase has a shorthand of the form <ExtName>:<ValName>. This will resolve to Tx_<ExtName>_Validation_Validator_<ValName>Validator there.
For FLOW3 instead of <ExtName> the <PackageName> could be used to create a class name.
(Thanks go to Martin Kutschker for that suggestion.)
Related issues
Associated revisions
[FEATURE] Shorthand syntax for custom validators
This change allows the Validate annotation for properties to
be given a value like "Mypkg:My". This is equivalent to using
"Mypkg\Validation\Validator\MyValidator" - just shorter.
Thanks to Martin Kutschker for reporting and inspiring patch.
Change-Id: Id807dbfa78ae1388aa8cd53bfc578893eade427c
Resolves: #33862
Releases: 1.1
[BUGFIX] Correctly implement validator resolver short notation
Currently, the short notation for validators which has been introduced
with Id807dbfa78ae1388aa8cd53bfc578893eade427c does only support syntax
like TYPO3\FLOW3:EmailAddress; but we should rather support TYPO3.FLOW3:EmailAddress
as this is how we use package keys at all other places which are not PHP code.
Change-Id: Icbab36f39955254a59dced0abee0ba4ef11130b5
Fixes: #38154
Related: #33862
Releases: 1.1, 1.2
[BUGFIX] Correctly implement validator resolver short notation
Currently, the short notation for validators which has been introduced
with Id807dbfa78ae1388aa8cd53bfc578893eade427c does only support syntax
like TYPO3\FLOW3:EmailAddress; but we should rather support TYPO3.FLOW3:EmailAddress
as this is how we use package keys at all other places which are not PHP code.
Change-Id: Icbab36f39955254a59dced0abee0ba4ef11130b5
Fixes: #38154
Related: #33862
Releases: 1.1, 1.2
History
#1 Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#2 Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#3 Updated by Gerrit Code Review over 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#4 Updated by Gerrit Code Review over 3 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#5 Updated by Gerrit Code Review over 3 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#6 Updated by Bastian Waidelich over 3 years ago
- Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow
#7 Updated by Bastian Waidelich over 3 years ago
- Category set to Validation
- Assigned To set to Stefan Neufeind
- Target version set to 1.1
- Has patch set to No
#8 Updated by Gerrit Code Review over 3 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986
#9 Updated by Karsten Dambekalns about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100