mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-23 22:44:42 +00:00
9d4ccf0db4
We are getting rid of this Bug: T354194 Change-Id: I70c613993647f77259ef0ccf7570e3560b66ef56
28 lines
687 B
PHP
28 lines
687 B
PHP
<?php
|
|
|
|
use MediaWiki\Config\ServiceOptions;
|
|
use MediaWiki\Extension\Thanks\Storage\LogStore;
|
|
use MediaWiki\Extension\Thanks\ThanksQueryHelper;
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
return [
|
|
'ThanksQueryHelper' => static function (
|
|
MediaWikiServices $services
|
|
): ThanksQueryHelper {
|
|
return new ThanksQueryHelper(
|
|
$services->getTitleFactory(),
|
|
$services->getConnectionProvider()
|
|
);
|
|
},
|
|
'ThanksLogStore' => static function ( MediaWikiServices $services ): LogStore {
|
|
return new LogStore(
|
|
$services->getConnectionProvider(),
|
|
$services->getActorNormalization(),
|
|
new ServiceOptions(
|
|
LogStore::CONSTRUCTOR_OPTIONS,
|
|
$services->getMainConfig()
|
|
)
|
|
);
|
|
}
|
|
];
|