willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.
MIT License
294 stars 59 forks source link

Allow to configure different XML/JSON serializers #12

Closed willdurand closed 10 years ago

willdurand commented 10 years ago

How should we handle this? Configuration?

bazinga_hateoas:
    serializer:
      xml: My\Custom\XmlSerializer
      json: My\CustomJsonSerializer
xserrat commented 9 years ago

@willdurand , I have a question about it. When you define your own serializer, how can I add it in order to be used?

I have modified a specific method through extending your JsonHalSerializer class and I would like to use that method.

Thanks!

skhattane commented 8 years ago

@xserrat, have you find a solution ? I have the same request. Thanks

xserrat commented 8 years ago

Hi @skhattane ,

Sorry for my later response. Finally I used the default serializer... It's pending to use a custom serializer for custom strategies.

I expect that you find a solution for that! :)