class Validation

Entry point for the Validator component.

Constants

API_VERSION_2_4

The Validator API provided by Symfony 2.4 and older.

API_VERSION_2_5

The Validator API provided by Symfony 2.5 and newer.

API_VERSION_2_5_BC

The Validator API provided by Symfony 2.5 and newer with a backwards compatibility layer for 2.4 and older.

Methods

createValidator()

Creates a new validator.

createValidatorBuilder()

Creates a configurable builder for validator objects.

Details

at line line 47
static ValidatorInterface createValidator()

Creates a new validator.

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

Return Value

ValidatorInterface The new validator

at line line 57
static ValidatorBuilderInterface createValidatorBuilder()

Creates a configurable builder for validator objects.

Return Value

ValidatorBuilderInterface The new builder