You are here

public static function Validation::createValidator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validation.php \Symfony\Component\Validator\Validation::createValidator()

Creates a new validator.

If you want to configure the validator, use {@link createValidatorBuilder()} instead.

Return value

ValidatorInterface The new validator.

File

vendor/symfony/validator/Validation.php, line 47

Class

Validation
Entry point for the Validator component.

Namespace

Symfony\Component\Validator

Code

public static function createValidator() {
  return self::createValidatorBuilder()
    ->getValidator();
}