public function CallbackValidatorTest_Object::validate in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CallbackValidatorTest.php, line 32
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function validate(ExecutionContextInterface $context) {
$context
->addViolation('My message', array(
'{{ value }}' => 'foobar',
));
return false;
}