static function ( MediaWikiServices $services ): CategoryManager { return new CategoryManager( $services->getMainConfig()->get( 'LinterCategories' ) ); }, 'Linter.DatabaseFactory' => static function ( MediaWikiServices $services ): DatabaseFactory { return new DatabaseFactory( new ServiceOptions( Database::CONSTRUCTOR_OPTIONS, $services->getMainConfig() ), $services->get( 'Linter.CategoryManager' ), $services->getDBLoadBalancerFactory() ); }, 'Linter.TotalsLookup' => static function ( MediaWikiServices $services ): TotalsLookup { return new TotalsLookup( new ServiceOptions( TotalsLookup::CONSTRUCTOR_OPTIONS, $services->getMainConfig() ), $services->getMainWANObjectCache(), $services->getStatsdDataFactory(), $services->get( 'Linter.CategoryManager' ) ); }, ]; // @codeCoverageIgnoreEnd