On my dev env, I sometimes have events in the store that are not mapped on the current branch (e.g. switching feature branches / ... ). Right now I have to clean up the store everytime is switch.
What do you think of an option to just log this as a warning instead of throwing an exception?
My take: provide an Upcaster that converts unknown events into a Dummy UnknownEvent class and logs a warning. Then the symfony bundle could conditionally register it based on a flag
On my dev env, I sometimes have events in the store that are not mapped on the current branch (e.g. switching feature branches / ... ). Right now I have to clean up the store everytime is switch.
What do you think of an option to just log this as a warning instead of throwing an exception?
My take: provide an Upcaster that converts unknown events into a Dummy
UnknownEventclass and logs a warning. Then the symfony bundle could conditionally register it based on a flag