Page MenuHomePhabricator

extensions/PasswordlessLogin - use AbstractAuthenticationProvider ::init, ::postInitSetup instead of the setters of AbstractAuthenticationProvider
Closed, ResolvedPublic

Description

  1. Provided that the following methods are used only in tests, all usages of deprecated AbstractAuthenticationProvider ::setLogger, ::setManager, ::setConfig, ::setHookContainer methods must be replaced with AbstractAuthenticationProvider::init.
  2. If it's overridden AbstractAuthenticationProvider::setConfig or AbstractAuthenticationProvider ::setLogger, ::setManager, ::setConfig, ::setHookContainer are used outside the test codebase of the extension, so replace it with AbstractAuthenticationProvider::postInitSetup to do any necessary setup.

Event Timeline

Vlad.shapik triaged this task as Medium priority.
Vlad.shapik renamed this task from extensions/PasswordlessLogin - hard deprecate the setters of AbstractAuthenticationProvider class to extensions/PasswordlessLogin - use AbstractAuthenticationProvider ::init, ::postInitSetup instead of the setters of AbstractAuthenticationProvider.May 6 2021, 2:57 PM

Change 686627 had a related patch set uploaded (by Vlad.shapik; author: Vlad.shapik):

[mediawiki/extensions/PasswordlessLogin@master] Replace uses of the deprecated setters of AbstractAuthenticationProvider

https://gerrit.wikimedia.org/r/686627

Change 686627 abandoned by Vlad.shapik:

[mediawiki/extensions/PasswordlessLogin@master] Replace uses of the deprecated setters of AbstractAuthenticationProvider

Reason:

It was fixed in this patch ->> I139b2f508ec99457ab03a02224c9e500ae006b62

https://gerrit.wikimedia.org/r/686627