class RecaptchaValidator extends ConstraintValidator (View source)

Methods

validate(mixed $data, Constraint $constraint)

No description

bool
check(Constraint $constraint, string $responseField)

Makes a request to recaptcha service and checks if recaptcha field is valid.

Details

validate(mixed $data, Constraint $constraint)

Parameters

mixed $data
Constraint $constraint

See also

\Symfony\Component\Validator\ConstraintValidator::validate()

protected bool check(Constraint $constraint, string $responseField)

Makes a request to recaptcha service and checks if recaptcha field is valid.

Parameters

Constraint $constraint
string $responseField

Return Value

bool