From d262b332d8a400dd8948d224b0a272cfc372cbae Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 22 May 2024 10:47:12 +1200 Subject: [PATCH] DOC Update extension hook examples to be protected --- docs/en/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index a4c90b7..90b53a1 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -78,7 +78,7 @@ use SilverStripe\Security\Member; class MyTOTPRegisterHandlerExtension extends Extension { - public function updateTotp(TOTPInterface $totp, Member $member) + protected function updateTotp(TOTPInterface $totp, Member $member) { $totp->setLabel($member->getCustomTOTPLabel()); $totp->setIssuer('My web project');