function Validation::createValidator
Creates a new validator.
If you want to configure the validator, use {@link createValidatorBuilder()} instead.
2 calls to Validation::createValidator()
- CompoundConstraintTestCase::createValidator in vendor/
symfony/ validator/ Test/ CompoundConstraintTestCase.php - Validation::createIsValidCallable in vendor/
symfony/ validator/ Validation.php - Creates a callable that returns true/false instead of throwing validation exceptions.
File
-
vendor/
symfony/ validator/ Validation.php, line 69
Class
- Validation
- Entry point for the Validator component.
Namespace
Symfony\Component\ValidatorCode
public static function createValidator() : ValidatorInterface {
return self::createValidatorBuilder()->getValidator();
}