Add Parser to MediaWikiServices
[lhc/web/wiklou.git] / includes / ServiceWiring.php
index 49183e5..a427f5c 100644 (file)
@@ -207,6 +207,11 @@ return [
                );
        },
 
+       'Parser' => function( MediaWikiServices $services ) {
+               $conf = $services->getMainConfig()->get( 'ParserConf' );
+               return ObjectFactory::constructClassInstance( $conf['class'], [ $conf ] );
+       },
+
        'LinkCache' => function( MediaWikiServices $services ) {
                return new LinkCache(
                        $services->getTitleFormatter(),