public function Post::__construct in reCAPTCHA 7.2
Same name and namespace in other branches
- 8.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\RequestMethodCode
public function __construct($siteVerifyUrl = null) {
$this->siteVerifyUrl = is_null($siteVerifyUrl) ? ReCaptcha::SITE_VERIFY_URL : $siteVerifyUrl;
}