X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FServiceWiring.php;h=c2197a65a006128fb069e2aad0eb454bd74eada1;hb=2f5ee9518857b4384518a283ff2d963145a8b119;hp=a071ff719c6a5e78d419bd6faddb6676f65ce7db;hpb=619a3195c2efaf203f4c3a1d85a65356495b9ca2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index a071ff719c..c2197a65a0 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -230,6 +230,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(),