public function SimpleReCaptchaFormManager::__construct in Simple Google reCAPTCHA 8
Constructs a SimpleReCaptchaFormManager object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\GuzzleHttp\ClientInterface $client: Http client to connect with reCAPTCHA verify service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger factory.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.
\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session service.
File
- src/
SimpleReCaptchaFormManager.php, line 73
Class
- SimpleReCaptchaFormManager
- Provides helper service used to attach reCaptcha to forms.
Namespace
Drupal\simple_recaptchaCode
public function __construct(ConfigFactoryInterface $config_factory, ClientInterface $client, LoggerChannelFactoryInterface $logger, ModuleHandlerInterface $module_handler, SessionInterface $session) {
$this->configFactory = $config_factory;
$this->client = $client;
$this->logger = $logger;
$this->moduleHandler = $module_handler;
$this->session = $session;
}