Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Validator; Chris@0: Chris@0: use Symfony\Component\Validator\Context\ExecutionContextInterface; Chris@0: Chris@0: /** Chris@0: * @author Bernhard Schussek Chris@0: */ Chris@0: interface ConstraintValidatorInterface Chris@0: { Chris@0: /** Chris@0: * Initializes the constraint validator. Chris@0: * Chris@0: * @param ExecutionContextInterface $context The current validation context Chris@0: */ Chris@0: public function initialize(ExecutionContextInterface $context); Chris@0: Chris@0: /** Chris@0: * Checks if the passed value is valid. Chris@0: * Chris@0: * @param mixed $value The value that should be validated Chris@0: * @param Constraint $constraint The constraint for the validation Chris@0: */ Chris@0: public function validate($value, Constraint $constraint); Chris@0: }