You are here

public function ConstraintValidatorFactoryInterface::getInstance in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintValidatorFactoryInterface.php \Symfony\Component\Validator\ConstraintValidatorFactoryInterface::getInstance()

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 vendor/symfony/validator/ConstraintValidatorFactory.php
Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.

File

vendor/symfony/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);