@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace Spatie\EventProjector\Console; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use InvalidArgumentException; |
|
7 | 6 | use Illuminate\Console\Command; |
8 | 7 | use Illuminate\Support\Collection; |
9 | 8 | use Spatie\EventProjector\Projectionist; |
10 | -use Spatie\EventProjector\Models\StoredEvent; |
|
11 | 9 | use Spatie\EventProjector\StoredEventRepository; |
12 | 10 | |
13 | 11 | class ReplayCommand extends Command |
@@ -3,13 +3,13 @@ |
||
3 | 3 | namespace Spatie\EventProjector\EventHandlers; |
4 | 4 | |
5 | 5 | use Exception; |
6 | +use Illuminate\Support\Collection; |
|
6 | 7 | use ReflectionClass; |
7 | 8 | use ReflectionMethod; |
8 | 9 | use ReflectionParameter; |
9 | -use Illuminate\Support\Collection; |
|
10 | +use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
|
10 | 11 | use Spatie\EventProjector\Models\StoredEventData; |
11 | 12 | use Spatie\EventProjector\ShouldBeStored; |
12 | -use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
|
13 | 13 | |
14 | 14 | trait HandlesEvents |
15 | 15 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\EventProjector; |
4 | 4 | |
5 | 5 | use Illuminate\Bus\Queueable; |
6 | -use Illuminate\Queue\SerializesModels; |
|
7 | -use Illuminate\Queue\InteractsWithQueue; |
|
8 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
7 | +use Illuminate\Queue\InteractsWithQueue; |
|
8 | +use Illuminate\Queue\SerializesModels; |
|
9 | 9 | use Spatie\EventProjector\Models\StoredEvent; |
10 | 10 | use Spatie\EventProjector\Models\StoredEventData; |
11 | 11 |
@@ -5,16 +5,15 @@ |
||
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Support\Arr; |
7 | 7 | use Illuminate\Support\Collection; |
8 | -use Spatie\EventProjector\Models\StoredEvent; |
|
9 | -use Spatie\EventProjector\Models\StoredEventData; |
|
10 | -use Spatie\EventProjector\Projectors\Projector; |
|
11 | 8 | use Spatie\EventProjector\EventHandlers\EventHandler; |
9 | +use Spatie\EventProjector\EventHandlers\EventHandlerCollection; |
|
10 | +use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
12 | 11 | use Spatie\EventProjector\Events\FinishedEventReplay; |
13 | 12 | use Spatie\EventProjector\Events\StartingEventReplay; |
14 | -use Spatie\EventProjector\Projectors\QueuedProjector; |
|
15 | 13 | use Spatie\EventProjector\Exceptions\InvalidEventHandler; |
16 | -use Spatie\EventProjector\EventHandlers\EventHandlerCollection; |
|
17 | -use Spatie\EventProjector\Events\EventHandlerFailedHandlingEvent; |
|
14 | +use Spatie\EventProjector\Models\StoredEventData; |
|
15 | +use Spatie\EventProjector\Projectors\Projector; |
|
16 | +use Spatie\EventProjector\Projectors\QueuedProjector; |
|
18 | 17 | |
19 | 18 | final class Projectionist |
20 | 19 | { |