[TYPO3-mvc] CHANGE: ValidatorInterface is now required for custom validators

Sebastian KurfŸürst sebastian at typo3.org
Sat Aug 1 10:39:56 CEST 2009


Hi Xavier,


> class LocaleDateTimeValidator extends 
> Tx_Extbase_Validation_Validator_AbstractValidator {
> 
> }
> 
> It seems that classes that provide their validator should yet implements 
> Tx_Extbase_Validation_Validator_ValidatorInterface:
This should be enough:

abstract class Tx_Extbase_Validation_Validator_AbstractValidator 
implements Tx_Extbase_Validation_Validator_ValidatorInterface {

> class LocaleDateTime
>     extends DateTime
>     implements Tx_Extbase_Validation_Validator_ValidatorInterface {
> 
>    ...
> }
Nope, your domain classes should certainly NOT implement the 
ValidatorInterface. Are you really sure this is needed? If yes, it'd be 
great to have a small testcase so we can fix this.

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list