Closed goetas closed 2 years ago
I do not really understand how the error controller should work... how is \FOS\RestBundle\ErrorRenderer\SerializerErrorRenderer
triggered?
@goetas maybe seeing the units tests: https://github.com/FriendsOfSymfony/FOSRestBundle/blob/8779ceebf715d1c60bd10286fce9d32ed03c484a/Tests/ErrorRenderer/SerializerErrorRendererTest.php can give a hint?
If you have xdebug, it's perfect sometimes to understand the flow of the code. You can call the API and catch it on phpstorm or some IDE with xdebug support.
Any news about this one? I have this problem with exception enabled, RabbitMQ queue doesn't understand the returned exception.
@erikas-tranauskas currents maintainers of the bundle unfortunately do no longer have enough time to review PRs, and introduce new features.
The future of the bundle is currently discussed in https://github.com/FriendsOfSymfony/FOSRestBundle/issues/2336 and on Symfony's slack under #fosrestbundle
.
This is green and ready to be reviewed
Fixes https://github.com/FriendsOfSymfony/FOSRestBundle/issues/2292
using same approach as in https://github.com/symfony/messenger/blob/1cc72a00521c69219ba79b7b04757d5e7fface66/Transport/Serialization/Normalizer/FlattenExceptionNormalizer.php#L98