File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ class AdminRegistrationController extends LeftAndMain
3232
3333 private static $ url_segment = 'mfa ' ;
3434
35+ /**
36+ * @deprecated 5.4.0 Will be removed without equivalent functionality to replace it
37+ */
3538 private static $ ignore_menuitem = true ;
3639
3740 private static $ url_handlers = [
Original file line number Diff line number Diff line change 55namespace SilverStripe \MFA \Extension ;
66
77use SilverStripe \Control \Controller ;
8+ use SilverStripe \Dev \Deprecation ;
89use SilverStripe \Forms \FieldList ;
910use SilverStripe \MFA \Authenticator \ChangePasswordHandler ;
1011use SilverStripe \MFA \Exception \InvalidMethodException ;
@@ -171,9 +172,11 @@ public function providePermissions(): array
171172
172173 /**
173174 * Clear any temporary multi-factor authentication related session keys when a member is successfully logged in.
175+ * @deprecated 5.4.0 Will be renamed to onAfterMemberLoggedIn()
174176 */
175177 public function afterMemberLoggedIn (): void
176178 {
179+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be renamed to onAfterMemberLoggedIn() ' );
177180 if (!Controller::has_curr ()) {
178181 return ;
179182 }
Original file line number Diff line number Diff line change 44
55use SilverStripe \Admin \LeftAndMain ;
66use SilverStripe \Core \Extension ;
7+ use SilverStripe \Dev \Deprecation ;
78use SilverStripe \MFA \RequestHandler \BaseHandlerTrait ;
89
910/**
@@ -15,9 +16,11 @@ class RequirementsExtension extends Extension
1516
1617 /**
1718 * @see LeftAndMain::init()
19+ * @deprecated 5.4.0 Will be renamed to onInit()
1820 */
1921 public function init ()
2022 {
23+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be renamed to onInit() ' );
2124 // As requirements for this module are dynamic - plugin methods apply their own requirements - we need to
2225 // include these requirements at run-time (opposed to using $extra_requirements_*)
2326 $ this ->applyRequirements (false );
You can’t perform that action at this time.
0 commit comments