You are here

public function ValidatorInterface::inContext in Plug 7

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

1 method overrides ValidatorInterface::inContext()
RecursiveValidator::inContext in lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveValidator.php
Returns a validator in the given execution context.

File

lib/Symfony/validator/Symfony/Component/Validator/Validator/ValidatorInterface.php, line 99

Class

ValidatorInterface
Validates PHP values against constraints.

Namespace

Symfony\Component\Validator\Validator

Code

public function inContext(ExecutionContextInterface $context);