2022-12-13 19:39:55 +00:00
|
|
|
<?php
|
|
|
|
|
2023-05-19 11:38:58 +00:00
|
|
|
use MediaWiki\Config\ServiceOptions;
|
|
|
|
use MediaWiki\Extension\Thanks\Storage\LogStore;
|
2022-12-13 19:39:55 +00:00
|
|
|
use MediaWiki\Extension\Thanks\ThanksQueryHelper;
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
|
|
|
|
return [
|
|
|
|
'ThanksQueryHelper' => static function (
|
|
|
|
MediaWikiServices $services
|
|
|
|
): ThanksQueryHelper {
|
|
|
|
return new ThanksQueryHelper(
|
|
|
|
$services->getTitleFactory(),
|
|
|
|
$services->getDBLoadBalancer()
|
|
|
|
);
|
|
|
|
},
|
2023-05-26 13:02:42 +00:00
|
|
|
'ThanksLogStore' => static function ( MediaWikiServices $services ): LogStore {
|
2023-05-19 11:38:58 +00:00
|
|
|
return new LogStore(
|
|
|
|
$services->getDBLoadBalancerFactory(),
|
|
|
|
$services->getActorNormalization(),
|
|
|
|
new ServiceOptions(
|
|
|
|
LogStore::CONSTRUCTOR_OPTIONS,
|
|
|
|
$services->getMainConfig()
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2022-12-13 19:39:55 +00:00
|
|
|
];
|