4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator;
14 use Symfony\Component\Validator\Validator\ValidatorInterface;
17 * Entry point for the Validator component.
19 * @author Bernhard Schussek <bschussek@gmail.com>
21 final class Validation
24 * Creates a new validator.
26 * If you want to configure the validator, use
27 * {@link createValidatorBuilder()} instead.
29 * @return ValidatorInterface The new validator
31 public static function createValidator()
33 return self::createValidatorBuilder()->getValidator();
37 * Creates a configurable builder for validator objects.
39 * @return ValidatorBuilderInterface The new builder
41 public static function createValidatorBuilder()
43 return new ValidatorBuilder();
47 * This class cannot be instantiated.
49 private function __construct()