File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
libraries/src/Event/Captcha
plugins/captcha/recaptcha_invisible/src/Extension Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ protected function setSubject(CaptchaRegistry $value): CaptchaRegistry
5454 }
5555
5656 /**
57- * Getter for the subject argument
57+ * Returns Captcha Registry instance.
5858 *
5959 * @return CaptchaRegistry
6060 *
6161 * @since __DEPLOY_VERSION__
6262 */
63- public function getSubject (): CaptchaRegistry
63+ public function getCaptchaRegistry (): CaptchaRegistry
6464 {
65- return $ this ->arguments [ 'subject ' ] ;
65+ return $ this ->getArgument ( 'subject ' ) ;
6666 }
6767}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function onCaptchaSetup(CaptchaSetupEvent $event)
5555 {
5656 $ this ->loadLanguage ();
5757
58- $ event ->getSubject ()->add (new InvisibleReCaptchaProvider ($ this ->params , $ this ->getApplication ()));
58+ $ event ->getCaptchaRegistry ()->add (new InvisibleReCaptchaProvider ($ this ->params , $ this ->getApplication ()));
5959 }
6060
6161 /**
You can’t perform that action at this time.
0 commit comments