public function ConstraintValidatorFactoryInterface::getInstance in Plug 7
Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.
Parameters
Constraint $constraint The source constraint:
Return value
1 method overrides ConstraintValidatorFactoryInterface::getInstance()
- ConstraintValidatorFactory::getInstance in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintValidatorFactory.php - Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintValidatorFactoryInterface.php, line 28
Class
- ConstraintValidatorFactoryInterface
- Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object.
Namespace
Symfony\Component\ValidatorCode
public function getInstance(Constraint $constraint);