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
Does it is possible to set default context when building the serializer?
Intent: For all our models, we want force serialization of null properties. Right now, we must pass a context object in each of our controllers. For instance:
Please, don't enforce closure for the factory. Eg, in zf2 service manager, it is recommended to use factory classes which is much better. You could maybe enforce callable. This would allow invokables.
Hello ;
Does it is possible to set default context when building the serializer?
Intent: For all our models, we want force serialization of null properties. Right now, we must pass a context object in each of our controllers. For instance:
Since we want such context for every serialization process, we would be able to do something like this in our Serializer service factory:
The text was updated successfully, but these errors were encountered: