mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 23:44:17 +00:00
Replace deprecated JobQueueGroup::singleton()
Change-Id: Ib19314b8a8a4265daf67e31d50f1c61aec2edb8e
This commit is contained in:
parent
47b6c866cc
commit
354012f419
|
@ -24,8 +24,8 @@ use ApiQuerySiteinfo;
|
|||
use Content;
|
||||
use DatabaseUpdater;
|
||||
use IContextSource;
|
||||
use JobQueueGroup;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MWCallableUpdate;
|
||||
use OutputPage;
|
||||
use Title;
|
||||
|
@ -209,7 +209,7 @@ class Hooks {
|
|||
'errors' => $errors,
|
||||
'revision' => $revision,
|
||||
] );
|
||||
JobQueueGroup::singleton()->push( $job );
|
||||
MediaWikiServices::getInstance()->getJobQueueGroup()->push( $job );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue