diff --git a/local/modules/ReCaptcha/Action/ReCaptchaAction.php b/local/modules/ReCaptcha/Action/ReCaptchaAction.php index 5f56a9a4..4f8373cf 100644 --- a/local/modules/ReCaptcha/Action/ReCaptchaAction.php +++ b/local/modules/ReCaptcha/Action/ReCaptchaAction.php @@ -18,13 +18,6 @@ class ReCaptchaAction implements EventSubscriberInterface $this->request = $request; } - public static function getSubscribedEvents() - { - return [ - ReCaptchaEvents::CHECK_CAPTCHA_EVENT => ['checkCaptcha', 128], - ]; - } - public function checkCaptcha(ReCaptchaCheckEvent $event) { $requestUrl = "https://www.google.com/recaptcha/api/siteverify"; @@ -52,4 +45,11 @@ class ReCaptchaAction implements EventSubscriberInterface $event->setHuman(true); } } + + public static function getSubscribedEvents() + { + return [ + ReCaptchaEvents::CHECK_CAPTCHA_EVENT => ['checkCaptcha', 128], + ]; + } } diff --git a/local/modules/ReCaptcha/Config/module.xml b/local/modules/ReCaptcha/Config/module.xml index 29dc4be7..b056ed6c 100644 --- a/local/modules/ReCaptcha/Config/module.xml +++ b/local/modules/ReCaptcha/Config/module.xml @@ -1,6 +1,6 @@ - ReCaptcha\ReCaptcha diff --git a/local/modules/ReCaptcha/Config/routing.xml b/local/modules/ReCaptcha/Config/routing.xml index 27717162..adcae397 100644 --- a/local/modules/ReCaptcha/Config/routing.xml +++ b/local/modules/ReCaptcha/Config/routing.xml @@ -1,7 +1,7 @@ - diff --git a/local/modules/ReCaptcha/Config/schema.xml b/local/modules/ReCaptcha/Config/schema.xml index 54c0ad06..e42d1ef7 100644 --- a/local/modules/ReCaptcha/Config/schema.xml +++ b/local/modules/ReCaptcha/Config/schema.xml @@ -1,6 +1,6 @@ -