static function ( MediaWikiServices $services ): CategoryManager { return new CategoryManager( $services->getMainConfig()->get( 'LinterCategories' ) ); }, 'Linter.DatabaseFactory' => static function ( MediaWikiServices $services ): DatabaseFactory { $config = $services->getMainConfig(); return new DatabaseFactory( [ 'writeNamespaceColumn' => $config->get( 'LinterWriteNamespaceColumnStage' ), 'writeTagAndTemplateColumns' => $config->get( 'LinterWriteTagAndTemplateColumnsStage' ), ], $services->get( 'Linter.CategoryManager' ), $services->getDBLoadBalancerFactory() ); }, 'Linter.TotalsLookup' => static function ( MediaWikiServices $services ): TotalsLookup { $config = $services->getMainConfig(); return new TotalsLookup( [ 'sampleFactor' => $config->get( 'LinterStatsdSampleFactor' ), ], $services->getMainWANObjectCache(), $services->getStatsdDataFactory(), $services->get( 'Linter.CategoryManager' ) ); }, ]; // @codeCoverageIgnoreEnd