event_service_interface
interface event_service_interface
Contract for the event service responsible for emitting item lifecycle events.
Implementations of this interface MUST:
- Never throw exceptions that could interrupt CRUD operations
- Execute in a fire-and-forget or best-effort manner
- Contain no business logic; only event dispatching or logging
Methods
Details
at line 37
void
item_created(item_interface $item)
Fired after an item is successfully created.
at line 47
void
item_updated(item_interface $old, item_interface $new)
Fired after an item is successfully updated.
Requires both OLD and NEW states to calculate differences (Diffs).
at line 54
void
item_deleted(int $id)
Fired after an item is successfully deleted.