Drop the UserLoadFromSession hook, deprecated in 1.27
Change-Id: Ic86d9ee1fe6763270e79e31296ecd027e5d41be2
This commit is contained in:
parent
d5cf7a4961
commit
06a34d5895
3 changed files with 1 additions and 15 deletions
|
|
@ -238,6 +238,7 @@ because of Phabricator reports.
|
|||
UserGroupsChanged hook.
|
||||
* Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
|
||||
instance from MediaWikiServices instead.
|
||||
* The UserLoadFromSession hook, deprecated in 1.27, has been removed.
|
||||
* …
|
||||
|
||||
=== Deprecations in 1.34 ===
|
||||
|
|
|
|||
|
|
@ -3744,14 +3744,6 @@ $name: user name
|
|||
$user: user object
|
||||
&$s: database query object
|
||||
|
||||
'UserLoadFromSession': DEPRECATED since 1.27! Create a
|
||||
MediaWiki\Session\SessionProvider instead.
|
||||
Called to authenticate users on external/environmental means; occurs before
|
||||
session is loaded.
|
||||
$user: user object being loaded
|
||||
&$result: set this to a boolean value to abort the normal authentication
|
||||
process
|
||||
|
||||
'UserLoadOptions': When user options/preferences are being loaded from the
|
||||
database.
|
||||
$user: User object
|
||||
|
|
|
|||
|
|
@ -1346,13 +1346,6 @@ class User implements IDBAccessObject, UserIdentity {
|
|||
* @return bool True if the user is logged in, false otherwise.
|
||||
*/
|
||||
private function loadFromSession() {
|
||||
// Deprecated hook
|
||||
$result = null;
|
||||
Hooks::run( 'UserLoadFromSession', [ $this, &$result ], '1.27' );
|
||||
if ( $result !== null ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// MediaWiki\Session\Session already did the necessary authentication of the user
|
||||
// returned here, so just use it if applicable.
|
||||
$session = $this->getRequest()->getSession();
|
||||
|
|
|
|||
Loading…
Reference in a new issue