* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Constraints\ExpressionValidator; /** * Default implementation of the ConstraintValidatorFactoryInterface. * * This enforces the convention that the validatedBy() method on any * Constraint will return the class name of the ConstraintValidator that * should validate the Constraint. * * @author Bernhard Schussek */ class ConstraintValidatorFactory implements ConstraintValidatorFactoryInterface { protected $validators = array(); public function __construct() { } /** * {@inheritdoc} */ public function getInstance(Constraint $constraint) { $className = $constraint->validatedBy(); if (!isset($this->validators[$className])) { $this->validators[$className] = 'validator.expression' === $className ? new ExpressionValidator() : new $className(); } return $this->validators[$className]; } } __halt_compiler();----SIGNATURE:----BgZfx9EcT2ZoB6DsLgZ83ZbKNU5f8347CRNFhM/HGjPeZoG20Z+a+9Xf/Ws5SODD1n9KUGZdwtM4rPtc5yS1DrwtlSZmjT+IeidsvvISsldsiYjQfBhfbUTSgmE7d0vd11ybX7pXMMbHiil4R3sLllibl3wPS36+TX1eS+2LsqAnPlhuS2j9pnXN7S6dL+p2Q/g4CpLqppPnG94YL5jBzrjv/mq0KKoxj7czP5l+Ks5a37xOCYk7sj/+9ZiDRtHxa5qhBpuN/xcroH2mvzAg04KYuHMilEu8pIPShAEAZcH4jrxp8G8h6gZfSIZF+n4KgvlB6ph7jLwBXtZRHGS2shauH82VcySlVylcGOXcsk+2l2SV4sYJUnINYtvxffgW4gT1CyrlGUiQ5X5qIguio4TIaWHYfF7RpsIEfeMcTFbxz6SIFTdV6KxfwbMETH30f2Sjzi/OTJ5u9azN6cLAuXATVF/UHQFjVyFK0ia0kYh/vy9KlDuAG7DrrKbJMZA+2lXNpEa1eKR1MSqjmPK6sfG2NR9owt7Udh9BVCZI3dtC9QBM+314t7GoZjqwhiWFj2WfmsXA26JXJxthKgF5ckjuuyPYi1XhzYyJ82WJNVMf7hA4kEFTWPrM2KCOxs65sQgYnXtAvvd/qKXRr+/3G6yCQqHb14F6FZsnwik+e9k=----ATTACHMENT:----NjM5MjA4NTE3MzE2MDkxOCA5MTYzNDY5NzIzODE0MTY4IDcyNTUwMjUxMzMzNTc1MDY=