Skip to content

Commit

Permalink
Merge pull request #446 from Sparclex/patch-1
Browse files Browse the repository at this point in the history
Document prepare events using abstract class instead of interface
  • Loading branch information
freekmurze authored Nov 13, 2023
2 parents 277b41c + 8af5f86 commit 97e353d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced-usage/preparing-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: Preparing events
weight: 1
---

The package will listen for events that implement the `\Spatie\EventSourcing\ShouldBeStored` interface. This is an empty interface that simply signals to the package that the event should be stored.
The package will listen for events that extend the `\Spatie\EventSourcing\StoredEvents\ShouldBeStored` class. This is an abstract class that signals to the package that the event should be stored.

You can quickly create an event that implements `ShouldBeStored` by running this artisan command:
You can quickly create an event that extends `ShouldBeStored` by running this artisan command:

```bash
php artisan make:storable-event NameOfYourEvent
Expand Down

0 comments on commit 97e353d

Please sign in to comment.