Newscoop\NewscoopBundle\Controller\SystemPrefController::recaptcha PHP Метод

recaptcha() приватный Метод

Sets recaptcha options.
private recaptcha ( string $publicKey, string $privateKey, string $secure )
$publicKey string ReCaptcha public key
$privateKey string ReCaptcha private key
$secure string Secure ReCaptcha
    private function recaptcha($publicKey, $privateKey, $secure)
    {
        $preferencesService = $this->container->get('system_preferences_service');
        $preferencesService->RecaptchaPublicKey = strip_tags($publicKey);
        $preferencesService->RecaptchaPrivateKey = strip_tags($privateKey);
        $preferencesService->RecaptchaSecure = strip_tags($secure);
    }