Alan Gabriel Bem
Alan Gabriel Bem
macOS version: 10.12.6 command output: ``` phpbrew ext install uuid # WARNING: ctype extension might be required for parsing yaml file. Downloading https://pecl.php.net/rest/r/uuid/stable.txt via curl extension [==================================================================] 5.00/5.00B 100% Downloading...
So, for example, when projection is rebuilding it could turn of global/side effects e.g. further publishing events until it catches up to the last event it processed before restarting
- [ ] move subscribers to outside event bus (making it subscription itself) - [ ] when unit of work is committed store all events from all registered aggregates at...
Thanks to that functional/behavioral test will be able to detect wrongly built events that serialize into embedded object instead of scalars/array of scalars
https://github.com/streakphp/streak/blob/6281b92d376fed0349e61fd624063dce45238168/src/Infrastructure/Domain/EventStore/PublishingEventStore.php#L44 Fix: ```php $this->events = array_merge($this->events, $events); ```