@@ -51,7 +51,7 @@ public function getAuthenticationRequests( $action, array $options ) {
51
51
|| $ action === \MediaWiki \Auth \AuthManager::ACTION_UNLINK ) ) {
52
52
$ user = \User::newFromName ( $ options ['username ' ] );
53
53
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
54
- $ dbr = $ lb ->getConnectionRef ( DB_REPLICA );
54
+ $ dbr = $ lb ->getConnection ( DB_REPLICA );
55
55
$ result = $ dbr ->select (
56
56
'authmanageroauth_linked_accounts ' ,
57
57
[ 'amoa_provider ' , 'amoa_remote_user ' ],
@@ -98,7 +98,7 @@ public function providerChangeAuthenticationData( AuthenticationRequest $req ) {
98
98
|| $ req ->action === \MediaWiki \Auth \AuthManager::ACTION_UNLINK ) ) {
99
99
$ user = \User::newFromName ( $ req ->username );
100
100
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
101
- $ dbr = $ lb ->getConnectionRef ( DB_PRIMARY );
101
+ $ dbr = $ lb ->getConnection ( DB_PRIMARY );
102
102
$ result = $ dbr ->delete (
103
103
'authmanageroauth_linked_accounts ' ,
104
104
[
@@ -281,7 +281,7 @@ public function continuePrimaryAuthentication( array $reqs ) {
281
281
}
282
282
283
283
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
284
- $ dbr = $ lb ->getConnectionRef ( DB_REPLICA );
284
+ $ dbr = $ lb ->getConnection ( DB_REPLICA );
285
285
286
286
$ result = $ dbr ->select (
287
287
'authmanageroauth_linked_accounts ' ,
@@ -329,7 +329,7 @@ public function continuePrimaryAccountLink( $user, array $reqs ) {
329
329
}
330
330
331
331
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
332
- $ dbr = $ lb ->getConnectionRef ( DB_PRIMARY );
332
+ $ dbr = $ lb ->getConnection ( DB_PRIMARY );
333
333
$ result = $ dbr ->insert (
334
334
'authmanageroauth_linked_accounts ' ,
335
335
[
@@ -357,7 +357,7 @@ public function autoCreatedAccount( $user, $source ) {
357
357
$ auth_data = $ this ->manager ->getAuthenticationSessionData ( self ::AUTHENTICATION_SESSION_DATA_REMOTE_USER );
358
358
$ this ->manager ->removeAuthenticationSessionData ( self ::AUTHENTICATION_SESSION_DATA_REMOTE_USER );
359
359
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
360
- $ dbr = $ lb ->getConnectionRef ( DB_PRIMARY );
360
+ $ dbr = $ lb ->getConnection ( DB_PRIMARY );
361
361
$ result = $ dbr ->insert (
362
362
'authmanageroauth_linked_accounts ' ,
363
363
[
@@ -380,7 +380,7 @@ public function finishAccountCreation( $user, $creator, AuthenticationResponse $
380
380
throw new LogicException ( "Unexpected createRequest type {$ request_class }. This should never happen. " );
381
381
}
382
382
$ lb = MediaWikiServices::getInstance ()->getDBLoadBalancer ();
383
- $ dbr = $ lb ->getConnectionRef ( DB_PRIMARY );
383
+ $ dbr = $ lb ->getConnection ( DB_PRIMARY );
384
384
$ result = $ dbr ->insert (
385
385
'authmanageroauth_linked_accounts ' ,
386
386
[
0 commit comments