BazingaHateoasBundle icon indicating copy to clipboard operation
BazingaHateoasBundle copied to clipboard

It should provide a way to get a HateoasBuilder instance from the container

Open docteurklein opened this issue 10 years ago • 12 comments

docteurklein avatar Dec 19 '13 16:12 docteurklein

Yep. We need to mimic what the JMSSerializerBundle provides :)

willdurand avatar Dec 19 '13 16:12 willdurand

@docteurklein contributions are welcomed :) also, give me the name of your book :p

willdurand avatar Dec 19 '13 16:12 willdurand

sure :) I'll do as soon as possible.

docteurklein avatar Dec 19 '13 16:12 docteurklein

the book is https://github.com/RESTful-Web-APIs It has a github! isn't that cool ? :)

docteurklein avatar Dec 19 '13 16:12 docteurklein

added to my wish list, we never know :D

willdurand avatar Dec 19 '13 16:12 willdurand

Ah ok, The bundle does provide an instance of the Hateoas serializer ? So, what does it do? I don't understand. I think it lakes of documentation.

lyrixx avatar Jan 15 '14 17:01 lyrixx

Well, the bundle does not do anything. It wires Hateoas stuff to the Serializer.

You have to use the serializer service from JMSSerializerBundle, nothing else.

willdurand avatar Jan 15 '14 20:01 willdurand

ahhh, ok. I did not know that. Thanks.

lyrixx avatar Jan 15 '14 22:01 lyrixx

May be this should be added in the doc, because it is not so obvious

lyrixx avatar Jan 15 '14 22:01 lyrixx

However, this should be documented.

willdurand avatar Jan 15 '14 22:01 willdurand

Yes, sure. Actually, this bundle needs some love.

willdurand avatar Jan 15 '14 22:01 willdurand

So, multiple issues:

Another issue is that is it not currently possible to use multiple XML Serializers or JSON Serializer with the same compiled container. We could fix that by naming the serializers, and configuring the XML/JSON serializer to use using a subclass of the SerializationContext. This one is mostly about a library refactoring. We would also then use tags to register XML/JSON serializers.

Let me know if I have missed anything. I will create issues for each of those.

adrienbrault avatar Jun 03 '14 04:06 adrienbrault