lib/composer/LisaBundle/src/VisualMedia/LisaBundle/Form/Constraint/GoogleRecaptchaConstraint.php line 17

Open in your IDE?
  1. <?php
  2. /**
  3.  * Google Recaptcha Constraint
  4.  *
  5.  * @author Bertin van den Ham <b.vandenham@visualmedia.nl>
  6.  */
  7. namespace VisualMedia\LisaBundle\Form\Constraint;
  8. use Symfony\Component\Validator\Constraint;
  9. use VisualMedia\LisaBundle\Form\Constraint\Validator\GoogleRecaptchaConstraintValidator;
  10. /**
  11.  * Google Recaptcha Constraint
  12.  */
  13. class GoogleRecaptchaConstraint extends Constraint
  14. {
  15.     public $message 'google_recaptcha.invalid';
  16.     public $messageScore 'google_recaptcha.low_score';
  17.     /**
  18.      * {@inheritdoc}
  19.      */
  20.     public function validatedBy()
  21.     {
  22.         return GoogleRecaptchaConstraintValidator::class;
  23.     }
  24. }