I propose creating a factory for RecentChanges that would inject the needed dependencies:
- LoadBalancer (currently uses wfGetDB)
- CommentStore (currently uses CommentStore::getStore())
- ActorMigration (currently uses ActorMigration::newMigration())
- HookContainer (currently uses Hooks::run())
- PermissionManager
- Global variables $wgPutIPinRC, $wgUseEnotif, $wgShowUpdatedMarker, $wgRCFeeds, $wgRCEngines, $wgUseRCPatrol, $wgUseNPPatrol, $wgUseFilePatrol, $wgLogRestrictions, $wgRCMaxAge