Skip to content

Commit

Permalink
Remove unneeded alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Oct 13, 2022
1 parent 89c8a00 commit 70e3146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/CaptchaComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function beforeRender(EventInterface $event): void {
*/
public function addValidation(Validator $validator, ?string $type = null) {
/** @var \Captcha\Model\Table\CaptchasTable $Captchas */
$Captchas = TableRegistry::getTableLocator()->get('CaptchasValidator', ['class' => 'Captcha.Captchas']);
$Captchas = TableRegistry::getTableLocator()->get('Captchas', ['class' => 'Captcha.Captchas']);

$Captchas->setValidator('captcha', $validator);

Expand Down

0 comments on commit 70e3146

Please sign in to comment.