Instead of having one specific field transformer (ObjectGetterExtractor) which supports a callback function, consider deprecating this option and introduce a "CallbackExtractor" which gives more clarity and flexibility.
The implementation of the "CallbackTransformer" of Symfony Forms here could act as a role model for this use case.
Instead of having one specific field transformer (ObjectGetterExtractor) which supports a callback function, consider deprecating this option and introduce a "CallbackExtractor" which gives more clarity and flexibility.
The implementation of the "CallbackTransformer" of Symfony Forms here could act as a role model for this use case.