Ported ConstraintValidatorFactory.php to Silex/Pimple