From b9a81e9f26abbafc47f57af3d525116a8b6d718a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 19 Aug 2024 09:52:49 +1200 Subject: [PATCH] API Standardise extension hooks --- src/Extension/MemberExtension.php | 2 +- src/Extension/RequirementsExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/MemberExtension.php b/src/Extension/MemberExtension.php index 4797717..a594ae7 100644 --- a/src/Extension/MemberExtension.php +++ b/src/Extension/MemberExtension.php @@ -172,7 +172,7 @@ public function providePermissions(): array /** * Clear any temporary multi-factor authentication related session keys when a member is successfully logged in. */ - public function afterMemberLoggedIn(): void + protected function onAfterMemberLoggedIn(): void { if (!Controller::has_curr()) { return; diff --git a/src/Extension/RequirementsExtension.php b/src/Extension/RequirementsExtension.php index 1096324..92e594a 100644 --- a/src/Extension/RequirementsExtension.php +++ b/src/Extension/RequirementsExtension.php @@ -16,7 +16,7 @@ class RequirementsExtension extends Extension /** * @see LeftAndMain::init() */ - public function init() + protected function onInit() { // As requirements for this module are dynamic - plugin methods apply their own requirements - we need to // include these requirements at run-time (opposed to using $extra_requirements_*)