@@ -4,15 +4,14 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Collection; |
7 | -use Spatie\EventProjector\Models\ProjectorStatus; |
|
8 | -use Spatie\EventProjector\Models\StoredEvent; |
|
9 | -use Spatie\EventProjector\Projectors\Projector; |
|
10 | 7 | use Spatie\EventProjector\EventHandlers\EventHandler; |
8 | +use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
11 | 9 | use Spatie\EventProjector\Events\FinishedEventReplay; |
10 | +use Spatie\EventProjector\Events\ProjectorDidNotHandlePriorEvents; |
|
12 | 11 | use Spatie\EventProjector\Events\StartingEventReplay; |
13 | 12 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
14 | -use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
15 | -use Spatie\EventProjector\Events\ProjectorDidNotHandlePriorEvents; |
|
13 | +use Spatie\EventProjector\Models\StoredEvent; |
|
14 | +use Spatie\EventProjector\Projectors\Projector; |
|
16 | 15 | |
17 | 16 | class EventProjectionist |
18 | 17 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\EventProjector\Models; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\DB; |
|
6 | -use Illuminate\Database\Eloquent\Model; |
|
7 | 5 | use Illuminate\Database\Eloquent\Builder; |
6 | +use Illuminate\Database\Eloquent\Model; |
|
7 | +use Illuminate\Support\Facades\DB; |
|
8 | +use Spatie\EventProjector\EventSerializers\EventSerializer; |
|
8 | 9 | use Spatie\EventProjector\ShouldBeStored; |
9 | 10 | use Spatie\SchemalessAttributes\SchemalessAttributes; |
10 | -use Spatie\EventProjector\EventSerializers\EventSerializer; |
|
11 | 11 | |
12 | 12 | class StoredEvent extends Model |
13 | 13 | { |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Support\Collection; |
7 | -use Spatie\EventProjector\Models\StoredEvent; |
|
8 | -use Spatie\EventProjector\Models\ProjectorStatus; |
|
9 | 7 | use Spatie\EventProjector\EventHandlers\HandlesEvents; |
10 | 8 | use Spatie\EventProjector\Exceptions\CouldNotResetProjector; |
9 | +use Spatie\EventProjector\Models\ProjectorStatus; |
|
10 | +use Spatie\EventProjector\Models\StoredEvent; |
|
11 | 11 | |
12 | 12 | trait ProjectsEvents |
13 | 13 | { |