Inject ConnectionProvider instead of DBLoadBalancerFactory

ILBFactory includes IConnectionProvider. That's why both works.
But these places don't need any load balancing functionality.

Change-Id: I2607891fd156972eb68b24c6fe7aa3c60b915b8c
这个提交包含在:
thiemowmde 2024-05-09 14:09:20 +02:00
父节点 29c1a324f5
当前提交 91258f9aa9

查看文件

@ -72,7 +72,7 @@ return [
'FileImporterCategoryExtractor' => static function ( MediaWikiServices $services ): CategoryExtractor {
return new CategoryExtractor(
$services->getParserFactory(),
$services->getDBLoadBalancerFactory(),
$services->getConnectionProvider(),
$services->getLinkBatchFactory()
);
},
@ -125,7 +125,7 @@ return [
'FileImporterNullRevisionCreator' => static function ( MediaWikiServices $services ): NullRevisionCreator {
return new NullRevisionCreator(
$services->getRevisionStore(),
$services->getDBLoadBalancerFactory()
$services->getConnectionProvider()
);
},