@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Collection; |
7 | -use Spatie\EventProjector\Snapshots\Snapshot; |
|
8 | 7 | use Spatie\EventProjector\Projectors\Projector; |
8 | +use Spatie\EventProjector\Snapshots\Snapshot; |
|
9 | 9 | |
10 | 10 | class CouldNotCreateSnapshot extends Exception |
11 | 11 | { |
@@ -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 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Console; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Spatie\EventProjector\Projectionist; |
|
7 | 6 | use Spatie\EventProjector\Console\Concerns\ReplaysEvents; |
8 | 7 | use Spatie\EventProjector\Console\Concerns\SelectsProjectors; |
8 | +use Spatie\EventProjector\Projectionist; |
|
9 | 9 | |
10 | 10 | class RebuildCommand extends Command |
11 | 11 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Console; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Spatie\EventProjector\Projectionist; |
|
7 | 6 | use Spatie\EventProjector\Console\Concerns\SelectsProjectors; |
7 | +use Spatie\EventProjector\Projectionist; |
|
8 | 8 | |
9 | 9 | class ResetCommand extends Command |
10 | 10 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\EventProjector\Models; |
4 | 4 | |
5 | -use Illuminate\Support\Collection; |
|
6 | 5 | use Illuminate\Database\Eloquent\Model; |
7 | -use Spatie\EventProjector\Projectors\Projector; |
|
6 | +use Illuminate\Support\Collection; |
|
8 | 7 | use Spatie\EventProjector\Facades\Projectionist; |
8 | +use Spatie\EventProjector\Projectors\Projector; |
|
9 | 9 | |
10 | 10 | class ProjectorStatus extends Model |
11 | 11 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Collection; |
7 | -use Spatie\EventProjector\Models\StoredEvent; |
|
8 | 7 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
8 | +use Spatie\EventProjector\Models\StoredEvent; |
|
9 | 9 | |
10 | 10 | trait HandlesEvents |
11 | 11 | { |
@@ -4,15 +4,15 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Collection; |
7 | -use Spatie\EventProjector\Models\StoredEvent; |
|
8 | -use Spatie\EventProjector\Projectors\Projector; |
|
9 | 7 | use Spatie\EventProjector\EventHandlers\EventHandler; |
10 | -use Spatie\EventProjector\Events\FinishedEventReplay; |
|
11 | -use Spatie\EventProjector\Events\StartingEventReplay; |
|
12 | -use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
|
13 | 8 | use Spatie\EventProjector\EventHandlers\EventHandlerCollection; |
14 | 9 | use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
10 | +use Spatie\EventProjector\Events\FinishedEventReplay; |
|
15 | 11 | use Spatie\EventProjector\Events\ProjectorDidNotHandlePriorEvents; |
12 | +use Spatie\EventProjector\Events\StartingEventReplay; |
|
13 | +use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
|
14 | +use Spatie\EventProjector\Models\StoredEvent; |
|
15 | +use Spatie\EventProjector\Projectors\Projector; |
|
16 | 16 | |
17 | 17 | class Projectionist |
18 | 18 | { |
@@ -5,9 +5,9 @@ |
||
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Console\Command; |
7 | 7 | use Illuminate\Support\Collection; |
8 | +use Spatie\EventProjector\Models\ProjectorStatus; |
|
8 | 9 | use Spatie\EventProjector\Projectionist; |
9 | 10 | use Spatie\EventProjector\Projectors\Projector; |
10 | -use Spatie\EventProjector\Models\ProjectorStatus; |
|
11 | 11 | use Spatie\EventProjector\Projectors\ProjectsEvents; |
12 | 12 | |
13 | 13 | class ListCommand extends Command |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Console; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Spatie\EventProjector\Projectionist; |
|
7 | 6 | use Spatie\EventProjector\Console\Concerns\ReplaysEvents; |
8 | 7 | use Spatie\EventProjector\Console\Concerns\SelectsProjectors; |
8 | +use Spatie\EventProjector\Projectionist; |
|
9 | 9 | |
10 | 10 | class ReplayCommand extends Command |
11 | 11 | { |