Currently when doing event-store:replay it will still keep old read models around. Ideally these should be cleared.
Since read models can be stored in different drivers we should write the logic ourselves but instead provide an API so that people can hook into these events.
My proposal is to trigger the following application events:
event-store.replay.beforeevent-store.replay.after
This would allow package consumers to listen for these events and executed the necessary logic.
Currently when doing
event-store:replay
it will still keep old read models around. Ideally these should be cleared.Since read models can be stored in different drivers we should write the logic ourselves but instead provide an API so that people can hook into these events.
My proposal is to trigger the following application events:
event-store.replay.before
event-store.replay.after
This would allow package consumers to listen for these events and executed the necessary logic.