mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 17:20:12 +00:00
Merge "Replace deprecated JobQueueGroup::singleton()"
This commit is contained in:
commit
bd45eeda91
|
@ -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;
|
||||
|
@ -207,7 +207,7 @@ class Hooks {
|
|||
'errors' => $errors,
|
||||
'revision' => $revision,
|
||||
] );
|
||||
JobQueueGroup::singleton()->push( $job );
|
||||
MediaWikiServices::getInstance()->getJobQueueGroup()->push( $job );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue