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
It was a little tricky, but finally i figured out how to do it:
https://api-platform.com/docs/core/errors/
The big impact is, that the serialization of the errors is now
done with the same infrastructure as serializing entities.
That makes it less format dependent.
It seems a little weird that we use a provider to "replace" the exception path
of the response by extracting the exception to the context,
and then continuing like when we would serialize a response.
But i can also see the benefits.
See api-platform/core#5974
Issue: ecamp#6618
Use the new functionality and remove the deprecated feature flag:
(from memory and from api-platform/core@754e499 )
And there is a guide: https://api-platform.com/docs/core/upgrade-guide/#api-platform-34
The text was updated successfully, but these errors were encountered: