Drop SessionManager::autoCreateUser(), deprecated in 1.27 and unused
authorJames D. Forrester <jforrester@wikimedia.org>
Sat, 9 Feb 2019 01:41:28 +0000 (17:41 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Sat, 9 Feb 2019 21:45:03 +0000 (13:45 -0800)
Depends-On: I261ea755c1d273ccc7fcc7c3b041623ccf4e331b
Change-Id: Ice2d755bee694b97e5ddbfc72caddf2b87ba0fc9

RELEASE-NOTES-1.33
includes/session/SessionManager.php

index 35c70c8..b2de154 100644 (file)
@@ -231,6 +231,8 @@ because of Phabricator reports.
 * Backwards compatibility for setting wgSessionsInObjectCache to false or using
   wgSessionHandler, both of which were deprecated in 1.27 with the introduction
   of SessionManager, has been removed.
+* SessionManager::autoCreateUser, deprecated in 1.27, has been removed. Use
+  MediaWiki\Auth\AuthManager::autoCreateUser instead.
 
 === Deprecations in 1.33 ===
 * The configuration option $wgUseESI has been deprecated, and is expected
index ceb9ceb..385cc35 100644 (file)
@@ -377,23 +377,6 @@ final class SessionManager implements SessionManagerInterface {
         * @{
         */
 
-       /**
-        * Auto-create the given user, if necessary
-        * @private Don't call this yourself. Let Setup.php do it for you at the right time.
-        * @deprecated since 1.27, use MediaWiki\Auth\AuthManager::autoCreateUser instead
-        * @param User $user User to auto-create
-        * @return bool Success
-        * @codeCoverageIgnore
-        */
-       public static function autoCreateUser( User $user ) {
-               wfDeprecated( __METHOD__, '1.27' );
-               return \MediaWiki\Auth\AuthManager::singleton()->autoCreateUser(
-                       $user,
-                       \MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_SESSION,
-                       false
-               )->isGood();
-       }
-
        /**
         * Prevent future sessions for the user
         *