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