RecursiveValidator::startContext()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface startContext($root = null) Starts a new validation context and returns a validator for that context. The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method. Parameters $root Return Value ContextualValidatorInterface The validator for the new context

2025-01-10 15:47:30
ValidatorInterface::validate()
  • References/PHP/Symfony/Component/Validator/Validator

Constrain

2025-01-10 15:47:30
ValidatorInterface::startContext()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface startContext() Starts a new validation context and returns a validator for that context. The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method. Return Value ContextualValidatorInterface The validator for the new context

2025-01-10 15:47:30
RecursiveContextualValidator::validate()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. Parameters mixed $value The value to validate Constraint|Constraint[] $constraints The constraint(s) to validate against array|null $groups The validation groups to validate. If non

2025-01-10 15:47:30
RecursiveValidator::inContext()
  • References/PHP/Symfony/Component/Validator/Validator

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

2025-01-10 15:47:30
RecursiveValidator::getMetadataFor()
  • References/PHP/Symfony/Component/Validator/Validator

MetadataInterface

2025-01-10 15:47:30