Feature #33862

a shorthand for custom validators

Added by Stefan Neufeind over 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-02-12
Priority:Should have Due date:
Assignee:Stefan Neufeind % Done:

100%

Category:Validation
Target version:TYPO3 Flow Base Distribution - 1.1
PHP Version: Complexity:
Has patch:No
Votes: 0

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

related to Extbase MVC Framework - Feature #8052: a shorthand for custom validators Resolved 2010-06-03
related to Extbase MVC Framework - Task #35514: Port unittest for shorthand for custom validators from FLOW3 Resolved 2012-04-02
related to TYPO3.Flow - Bug #38154: Validator shorthand notation does not work as documented Resolved 2012-06-18

Associated revisions

Revision fdfca9eb
Added by Sebastian Kurfuerst 11 months ago

[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

Revision ead27341
Added by Sebastian Kurfuerst 11 months ago

[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

Updated by Gerrit Code Review over 1 year 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

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986

Updated by Bastian Waidelich over 1 year ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow

Updated by Bastian Waidelich over 1 year ago

  • Category set to Validation
  • Assignee set to Stefan Neufeind
  • Target version set to 1.1
  • Has patch set to No

Updated by Gerrit Code Review about 1 year ago

Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8986

Updated by Karsten Dambekalns about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF