public static function Validation::createValidator in Plug 7
Creates a new validator.
If you want to configure the validator, use {@link createValidatorBuilder()} instead.
Return value
ValidatorInterface The new validator.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validation.php, line 45
Class
- Validation
- Entry point for the Validator component.
Namespace
Symfony\Component\ValidatorCode
public static function createValidator() {
return self::createValidatorBuilder()
->getValidator();
}