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
You can create a subscriber which extends the JMS\Serializer\EventDispatcher\EventSubscriverInterface and create the onPreSerialize method, which receives the JMS\Serialzier\EventDispatcher\PreSerializeEvent event object.
Then use the following method to get access to the current request's groups:
Hey bro!
I can use Groups and Preserialize at same time?
For example, in my case:
Just don't work. The group ignored. The function is always called.
I could not tell if this is just a problem. Anyway, is there anything I can do?
The text was updated successfully, but these errors were encountered: