Closed myavchik closed 4 years ago
Hi,
you are looking at 1.0 API which has been using Laravel style. Take a look at 2.0 described in documentations.
You are still not able to pass objects directly due to conceptual limitations (for example, what PHP User should do in Golang handler?), but you have two clear methods responsible for hydration/extraction of data so you can pack this object into any form you want. https://github.com/spiral/docs/blob/feature/2.0/queue/jobs.md#managing-payloads
Oh... thanks.
This feature is exactly the reason why we abandon such jobs design as it becomes impossible to implement rich payload management without a massive amount of magic.
Allow passing objects into jobs