@@ -91,7 +91,7 @@ |
||
| 91 | 91 | /** |
| 92 | 92 | * @param \Spatie\EventSourcing\ShouldBeStored|\Spatie\EventSourcing\ShouldBeStored[] $events |
| 93 | 93 | * |
| 94 | - * @return $this |
|
| 94 | + * @return FakeAggregateRoot |
|
| 95 | 95 | */ |
| 96 | 96 | public static function fake($events = []): FakeAggregateRoot |
| 97 | 97 | { |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Carbon\Carbon; |
| 6 | 6 | use Illuminate\Support\LazyCollection; |
| 7 | -use Spatie\EventSourcing\Models\EloquentStoredEvent; |
|
| 8 | 7 | use Spatie\EventSourcing\EventSerializers\EventSerializer; |
| 9 | 8 | use Spatie\EventSourcing\Exceptions\InvalidEloquentStoredEventModel; |
| 9 | +use Spatie\EventSourcing\Models\EloquentStoredEvent; |
|
| 10 | 10 | |
| 11 | 11 | class EloquentStoredEventRepository implements StoredEventRepository |
| 12 | 12 | { |
@@ -3,13 +3,13 @@ |
||
| 3 | 3 | namespace Spatie\EventSourcing\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\EventSourcing\StoredEvent; |
|
| 11 | -use Spatie\EventSourcing\ShouldBeStored; |
|
| 12 | 10 | use Spatie\EventSourcing\Exceptions\InvalidEventHandler; |
| 11 | +use Spatie\EventSourcing\ShouldBeStored; |
|
| 12 | +use Spatie\EventSourcing\StoredEvent; |
|
| 13 | 13 | |
| 14 | 14 | trait HandlesEvents |
| 15 | 15 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Spatie\EventSourcing\Events; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use Spatie\EventSourcing\StoredEvent; |
|
| 7 | 6 | use Spatie\EventSourcing\EventHandlers\EventHandler; |
| 7 | +use Spatie\EventSourcing\StoredEvent; |
|
| 8 | 8 | |
| 9 | 9 | final class EventHandlerFailedHandlingEvent |
| 10 | 10 | { |
@@ -5,14 +5,14 @@ |
||
| 5 | 5 | use Exception; |
| 6 | 6 | use Illuminate\Support\Arr; |
| 7 | 7 | use Illuminate\Support\Collection; |
| 8 | -use Spatie\EventSourcing\Projectors\Projector; |
|
| 9 | 8 | use Spatie\EventSourcing\EventHandlers\EventHandler; |
| 9 | +use Spatie\EventSourcing\EventHandlers\EventHandlerCollection; |
|
| 10 | +use Spatie\EventSourcing\Events\EventHandlerFailedHandlingEvent; |
|
| 10 | 11 | use Spatie\EventSourcing\Events\FinishedEventReplay; |
| 11 | 12 | use Spatie\EventSourcing\Events\StartingEventReplay; |
| 12 | -use Spatie\EventSourcing\Projectors\QueuedProjector; |
|
| 13 | 13 | use Spatie\EventSourcing\Exceptions\InvalidEventHandler; |
| 14 | -use Spatie\EventSourcing\EventHandlers\EventHandlerCollection; |
|
| 15 | -use Spatie\EventSourcing\Events\EventHandlerFailedHandlingEvent; |
|
| 14 | +use Spatie\EventSourcing\Projectors\Projector; |
|
| 15 | +use Spatie\EventSourcing\Projectors\QueuedProjector; |
|
| 16 | 16 | |
| 17 | 17 | final class Projectionist |
| 18 | 18 | { |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | namespace Spatie\EventSourcing; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use Illuminate\Support\Arr; |
|
| 7 | 6 | use Illuminate\Contracts\Support\Arrayable; |
| 8 | -use Spatie\EventSourcing\Facades\Projectionist; |
|
| 9 | -use Spatie\EventSourcing\Exceptions\InvalidStoredEvent; |
|
| 7 | +use Illuminate\Support\Arr; |
|
| 10 | 8 | use Spatie\EventSourcing\EventSerializers\EventSerializer; |
| 9 | +use Spatie\EventSourcing\Exceptions\InvalidStoredEvent; |
|
| 10 | +use Spatie\EventSourcing\Facades\Projectionist; |
|
| 11 | 11 | |
| 12 | 12 | class StoredEvent implements Arrayable |
| 13 | 13 | { |