prooph / common

Common classes used across prooph components

Home Page:http://getprooph.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only array and scalar in event objects

mumia opened this issue · comments

I'm aware this project will be deprecated, but I was wondering why would we not allow objects in the event's payload.

In my opinion the event object should be able to hold domain objects and get them serialised when persisting it or queueing it.

https://github.com/prooph/common/blob/master/src/Messaging/MessageDataAssertion.php#L71

Am I wrong in this assumption?