Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Symfony Serializer #25

Open
bestog opened this issue Feb 24, 2019 · 1 comment
Open

Support for Symfony Serializer #25

bestog opened this issue Feb 24, 2019 · 1 comment
Assignees
Labels

Comments

@bestog
Copy link

bestog commented Feb 24, 2019

Is it possible to customize the bundle to use both JMSSerializer and Symony Serializer? I find the bundle very useful, but would like to stay with Symfony Serializer.

@fre5h fre5h added the question label Feb 25, 2019
@fre5h
Copy link
Owner

fre5h commented Feb 25, 2019

I think it is possible. But should be another approach. JMSSerializer provides events, so in my bundle I use subscribers for them https://github.com/fre5h/VichUploaderSerializationBundle/blob/master/EventListener/JmsSerializerSubscriber.php
Symfony Serializer does not provide events, but I think same logic can be done in custom normalizer

@fre5h fre5h self-assigned this Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants