Validation
class Validation
Entry point for the Validator component.
Methods
static ValidatorInterface | createValidator() Creates a new validator. | |
static ValidatorBuilderInterface | createValidatorBuilder() Creates a configurable builder for validator objects. |
Details
static ValidatorInterface createValidator()
Creates a new validator.
If you want to configure the validator, use {@link createValidatorBuilder()} instead.
Return Value
ValidatorInterface | The new validator |
static ValidatorBuilderInterface createValidatorBuilder()
Creates a configurable builder for validator objects.
Return Value
ValidatorBuilderInterface | The new builder |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Validator/Validation.html