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
While #[Context] can be used on Class now, that Context ist just not passed to the Encoder, only to the (de)normalizers etc., as far as I have debugged initially
and i don't know how to feed the Encoder with the Class Context yet
Just ran into the same issue while trying to transform some JMS Serializer-based code into Symfony Serializer-based code.
This is indeed very cumbersome.
I suppose the fact that the encoder does not use the classMetadataFactory while the object normalizers do has something to do with it.
Maybe the context could refreshed by a specific XmlNormalizer whose job would be (possibly among others things) to set the XmlEncoder related context properties into the "live" context.
But then the context would probably have to be passed by reference to all normalizers.
Description
add a new Annotation/Attribute to mark the
XMLEncoder::ROOT_NODE_NAME
on a classAnnotation\Context
can't be used for this because that can't be tagged in classes (yet)Example
results in:
The text was updated successfully, but these errors were encountered: