You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 4.1-dev branch (closes#26941).
Discussion
----------
[Messenger] Allow to configure the transport
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | ish
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #26900, #26908, #26935
| License | MIT
| Doc PR | ø
We allow users to configure the encoder/decoder used by the built-in adapter(s). This also adds the support of configuring the default's encoder/decoder format and context.
Commits
-------
1a3f0bb [Messenger] Allow to configure the transport
if you have an entity that has a circular reference like:
https://github.com/boggs-love/api/blob/87205c3ce42d82f69f6749245755c5192c1f0e0c/src/Entity/RSVP.php
and you attempt to dispatch it:
You'll get the following exception:
Full error message:
It looks like this is because the serializer does not allow you to specify any
$context
(see #26900)symfony/src/Symfony/Component/Messenger/Transport/Serialization/Serializer.php
Line 52 in ccb0e84
Perhaps the routing config should also allow you to specify the serializer config?
The text was updated successfully, but these errors were encountered: