dbProvider = $dbProvider; } /** * @inheritDoc */ protected function resolve( array $lookups ) { $store = MediaWikiServices::getInstance()->getRevisionStore(); $dbr = $this->dbProvider->getReplicaDatabase(); $revQuery = $store->getQueryInfo( [ 'page', 'user' ] ); $res = $dbr->select( $revQuery['tables'], $revQuery['fields'], [ 'rev_id' => $lookups ], __METHOD__, [], $revQuery['joins'] ); foreach ( $res as $row ) { yield $row->rev_id => $store->newRevisionFromRow( $row ); } } }