willdurand / BazingaHateoasBundle

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

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

Open docteurklein opened 10 years ago

willdurand commented 10 years ago

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

willdurand commented 10 years ago

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

docteurklein commented 10 years ago

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

docteurklein commented 10 years ago

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

willdurand commented 10 years ago

added to my wish list, we never know :D

lyrixx commented 10 years ago

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.

willdurand commented 10 years ago

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.

lyrixx commented 10 years ago

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

lyrixx commented 10 years ago

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

willdurand commented 10 years ago

However, this should be documented.

willdurand commented 10 years ago

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

adrienbrault commented 10 years ago

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.