From 561f1606f8277db2dda4012cae3a1887fdd0e702 Mon Sep 17 00:00:00 2001 From: hslater Date: Thu, 28 Mar 2024 21:50:40 +1300 Subject: [PATCH] Remove REL1_35 compat --- src/Runner.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Runner.php b/src/Runner.php index 528fee2..f7e8dee 100644 --- a/src/Runner.php +++ b/src/Runner.php @@ -6,7 +6,6 @@ use DateTime; use Exception; use GlobalVarConfig; -use JobQueueGroup; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; use MWStake\MediaWiki\Component\RunJobsTrigger\Job\InvokeRunner; @@ -130,15 +129,9 @@ public static function runDeferred() { return; } - $services = MediaWikiServices::getInstance(); - $config = $services->getMainConfig(); - $mwVersion = $config->get( 'Version' ); - if ( version_compare( $mwVersion, '1.35', '>=' ) ) { - $services->getJobQueueGroupFactory()->makeJobQueueGroup() - ->push( new InvokeRunner() ); - } else { - JobQueueGroup::singleton()->push( new InvokeRunner() ); - } + MediaWikiServices::getInstance()->getJobQueueGroupFactory() + ->makeJobQueueGroup() + ->push( new InvokeRunner() ); } /**