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(),
|
2024-02-28 12:55:05 +00:00
|
|
|
$services->getConnectionProvider()
|
2022-12-13 19:39:55 +00:00
|
|
|
);
|
|
|
|
},
|
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(
|
2024-02-28 12:55:05 +00:00
|
|
|
$services->getConnectionProvider(),
|
2023-05-19 11:38:58 +00:00
|
|
|
$services->getActorNormalization(),
|
|
|
|
new ServiceOptions(
|
|
|
|
LogStore::CONSTRUCTOR_OPTIONS,
|
|
|
|
$services->getMainConfig()
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2022-12-13 19:39:55 +00:00
|
|
|
];
|