parser: inject a Logger into Parser instead of using wfDebug()
[lhc/web/wiklou.git] / includes / ServiceWiring.php
index 7d2b3cb..018c371 100644 (file)
@@ -91,7 +91,6 @@ return [
        },
 
        'BlockManager' => function ( MediaWikiServices $services ) : BlockManager {
-               $config = $services->getMainConfig();
                $context = RequestContext::getMain();
                return new BlockManager(
                        new ServiceOptions(
@@ -440,7 +439,8 @@ return [
                        wfUrlProtocols(),
                        $services->getSpecialPageFactory(),
                        $services->getLinkRendererFactory(),
-                       $services->getNamespaceInfo()
+                       $services->getNamespaceInfo(),
+                       LoggerFactory::getInstance( 'Parser' )
                );
        },