This commit is contained in:
2023-12-18 15:04:56 +08:00
parent 55a656bb6f
commit 49cefbd1f9
+4 -4
View File
@@ -36,10 +36,10 @@ class Validator extends BaseValidator
'json' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::JSON,], 'json' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::JSON,],
'float' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::FLOAT,], 'float' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::FLOAT,],
'array' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::ARRAY,], 'array' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::ARRAY,],
'maxlength' => ['class' => LengthValidator::class, 'method' => 'max',], 'maxlength' => ['class' => LengthValidator::class, 'method' => LengthValidator::MAX_LENGTH,],
'minlength' => ['class' => LengthValidator::class, 'method' => 'min',], 'minlength' => ['class' => LengthValidator::class, 'method' => LengthValidator::MIN_LENGTH,],
'email' => ['class' => EmailValidator::class, 'method' => 'email',], 'email' => ['class' => EmailValidator::class],
'length' => ['class' => LengthValidator::class, 'method' => 'default',], 'length' => ['class' => LengthValidator::class],
'round' => ['class' => RoundValidator::class,], 'round' => ['class' => RoundValidator::class,],
]; ];