You are here

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

ConstraintValidatorInterface

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\Validator

Code

public function getInstance(Constraint $constraint);