You are here

public function Post::__construct in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 7.2 recaptcha-php/src/ReCaptcha/RequestMethod/Post.php \ReCaptcha\RequestMethod\Post::__construct()

Only needed if you want to override the defaults

Parameters

string $siteVerifyUrl URL for reCAPTCHA sitevrerify API:

File

recaptcha-php/src/ReCaptcha/RequestMethod/Post.php, line 49

Class

Post
Sends POST requests to the reCAPTCHA service.

Namespace

ReCaptcha\RequestMethod

Code

public function __construct($siteVerifyUrl = null) {
  $this->siteVerifyUrl = is_null($siteVerifyUrl) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl;
}