X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2FServiceWiring.php;fp=includes%2FServiceWiring.php;h=dc397a2cc39f0a20b732db69c2c0cb14b331758a;hb=e5879da149afe183ce889ef6f4158086c9b4735f;hp=847c1bb23cfb87388fd4ca00676dfd60e4a215ac;hpb=785ffe2408faa6f17240648d9dac4ed6dbfdd613;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index 847c1bb23c..dc397a2cc3 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -521,6 +521,14 @@ return [ return new \MediaWiki\Http\HttpRequestFactory(); }, + 'CommentStore' => function ( MediaWikiServices $services ) { + global $wgContLang; + return new CommentStore( + $wgContLang, + $services->getMainConfig()->get( 'CommentTableSchemaMigrationStage' ) + ); + } + /////////////////////////////////////////////////////////////////////////// // NOTE: When adding a service here, don't forget to add a getter function // in the MediaWikiServices class. The convenience getter should just call