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