Skip to content

Commit de94e15

Browse files
committed
Better naming
1 parent 673f166 commit de94e15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/src/Event/Captcha/CaptchaSetupEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

plugins/captcha/recaptcha_invisible/src/Extension/InvisibleReCaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)