* * 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:----Nb/ZBk9DciCmhU7gUbuibHcrQacnMHzGFeFHKLLvpkC+o0XFY2s78hSKBZ1IW7Gxe+hzdgfjWitRqqj6eyXBby7RS7mgM52H6HtTSZzchS6pycRVdF8XGf6RUqLIT3ANO4McV677UUfka4+89NyXATxaEpD2NXtyHxMqhXrysIAUVxje1iyzJsvbEeyhqmgrp/QHDTSyGp/lblMmPzZIK3X5WDSKusSBVSEv5Rr4xc+ltsx9ga8j4aIYKK7nf4+OPK98xREFvb0qY9Z0UEWYo2J9bf8fLKN2gSqaosuOO/ZwF1HOMDiLBS7eQoWHSG3jthMqX89HRJTBSciYiSOEXJAeOB9xktYtsAlmWWzvSzoUCDP1fW1AJZljBmRroqwdWTOr522tmLM9XKM0l2Bn9KQweZ3zxsVMoF01EF5LZkMFIg7yMb4UBlWX7i2Q9k63lJCh5YKvB3ddIy59sORvWIdJ4qG3Z2ZV2G3HkQ1jYEgwZTtVEbP/37nniI4zA0G1bE1hqur5RcoDwTFcHSf+qOfa9fM7IqXHU6+Jt5rVw4pK9Wik5Ni7TPnbMH996qXezost/3dZZ0+9i0n18TTaPCxBH4UVlqGz3tFPkFBE3xLzX/Nm4uStrhcgajb4QDJ4z1HI92K6+e7PrpcntqeUhmjVjZQgwq5UbwdkkPjQwO4=----ATTACHMENT:----MjI0OTI2NzIyOTc5NzMyMSA1NDUyMjEyNTAxMzIwNjk5IDkzNTE5NzA2NzkzMzU1MDM=