Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 32
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Extension\DiscussionTools;
4
5use MediaWiki\MediaWikiServices;
6
7return [
8    'DiscussionTools.CommentParser' => static function ( MediaWikiServices $services ): CommentParser {
9        return new CommentParser(
10            $services->getMainConfig(),
11            $services->getContentLanguage(),
12            $services->getLanguageConverterFactory(),
13            $services->getService( 'DiscussionTools.LanguageData' ),
14            $services->getTitleParser()
15        );
16    },
17    'DiscussionTools.LanguageData' => static function ( MediaWikiServices $services ): LanguageData {
18        return new LanguageData(
19            $services->getMainConfig(),
20            $services->getContentLanguage(),
21            $services->getLanguageConverterFactory(),
22            $services->getSpecialPageFactory()
23        );
24    },
25    'DiscussionTools.SubscriptionStore' => static function ( MediaWikiServices $services ): SubscriptionStore {
26        return new SubscriptionStore(
27            $services->getConfigFactory(),
28            $services->getDBLoadBalancerFactory(),
29            $services->getReadOnlyMode(),
30            $services->getUserFactory()
31        );
32    },
33    'DiscussionTools.ThreadItemStore' => static function ( MediaWikiServices $services ): ThreadItemStore {
34        return new ThreadItemStore(
35            $services->getConfigFactory(),
36            $services->getDBLoadBalancerFactory(),
37            $services->getReadOnlyMode(),
38            $services->getPageStore(),
39            $services->getRevisionStore(),
40            $services->getTitleFormatter(),
41            $services->getActorStore()
42        );
43    },
44    'DiscussionTools.ThreadItemFormatter' => static function ( MediaWikiServices $services ): ThreadItemFormatter {
45        return new ThreadItemFormatter(
46            $services->getTitleFormatter(),
47            $services->getLinkRenderer()
48        );
49    },
50];