@@ -5,9 +5,8 @@ |
||
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Support\Collection; |
7 | 7 | use Spatie\EventProjector\EventProjectionist; |
8 | -use Spatie\EventProjector\Models\StoredEvent; |
|
9 | -use Spatie\EventProjector\Projectors\Projector; |
|
10 | 8 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
9 | +use Spatie\EventProjector\Models\StoredEvent; |
|
11 | 10 | |
12 | 11 | class ReplayEventsCommand extends Command |
13 | 12 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Projectors; |
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | -use Spatie\EventProjector\Models\StoredEvent; |
|
7 | 6 | use Spatie\EventProjector\Models\ProjectorStatus; |
7 | +use Spatie\EventProjector\Models\StoredEvent; |
|
8 | 8 | |
9 | 9 | trait ProjectsEvents |
10 | 10 | { |
@@ -38,6 +38,9 @@ |
||
38 | 38 | ); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $event |
|
43 | + */ |
|
41 | 44 | protected function shouldBeStored($event): bool |
42 | 45 | { |
43 | 46 | if (! class_exists($event)) { |