willdurand / BazingaHateoasBundle

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

how to use yaml format #53

Closed soerenmartius closed 8 years ago

soerenmartius commented 8 years ago

Hi,

Instead of using annotations i'd like to use as a configuration file. I've spotted the configuration here https://github.com/willdurand/Hateoas#yaml

Also i've placed a file called hateoas.yml in my bundles config directory but it seems that the bundle isn't autoloading it.

Would you please give me a hint. thanks

adrienbrault commented 8 years ago

You have to tell jms serializer bundle where your yaml files are. see http://jmsyst.com/bundles/JMSSerializerBundle/master/configuration

soerenmartius commented 8 years ago

excellent! thanks for the hint :) !