is there a way to access serializer metadata, similar to doctrines mapping/classmetadata?
Doctrine allows you to edit mapping information via loadClassMetadata($args) from an EventSubscriber.
I'd like to edit my @SerializedName("foo") annotation pre serialization.
For context, the attributes (and therefore Entites) are inside a symfony bundle and need to be renamed based on the main applications settings.
I'm using symfonys serializer, not JMS.
Is it possible to call functions inside annotaions, which would look like this: @SerializedName(getName())? That could solve my problem.