Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
Remove unnecessary getStoredEventClass method
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Apr 13, 2019
1 parent 237278b commit 621d96d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Projectionist.php
Expand Up @@ -233,7 +233,7 @@ public function replay(

$projectors->call('onStartingEventReplay');

$this->getStoredEventClass()::query()
$this->storedEventClass::query()
->startingFrom($startingFromEventId ?? 0)
->chunk($this->replayChunkSize, function (Collection $storedEvents) use ($projectors, $onEventReplayed) {
$storedEvents->each(function (StoredEvent $storedEvent) use ($projectors, $onEventReplayed) {
Expand All @@ -254,9 +254,4 @@ public function replay(

$projectors->call('onFinishedEventReplay');
}

private function getStoredEventClass(): string
{
return $this->storedEventClass;
}
}

0 comments on commit 621d96d

Please sign in to comment.