Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only array and scalar in event objects #77

Closed
mumia opened this issue Jul 12, 2019 · 1 comment
Closed

Only array and scalar in event objects #77

mumia opened this issue Jul 12, 2019 · 1 comment

Comments

@mumia
Copy link

mumia commented Jul 12, 2019

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?

@prolic
Copy link
Member

prolic commented Jul 15, 2019

see here #54

@prolic prolic closed this as completed Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants