static function ( MediaWikiServices $services ): CategoryManager { return new CategoryManager( $services->getMainConfig()->get( 'LinterCategories' ) ); }, 'Linter.Database' => static function ( MediaWikiServices $services ): Database { return new Database( 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' ), $services->get( 'Linter.Database' ) ); }, ]; // @codeCoverageIgnoreEnd