Phosphorum\ReCaptcha::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        /** @var Config $config */
        $config = $this->config->get('reCaptcha');
        if ($config instanceof Config && $config->offsetGet('secret') && $config->offsetGet('siteKey')) {
            $this->enabled = true;
            $this->captcha = new GoogleCaptcha($config->offsetGet('secret'));
        }
    }