{"action":"created","issue":{"url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/52","repository_url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle","labels_url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/52/comments","events_url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/52/events","html_url":"https://github.com/willdurand/BazingaHateoasBundle/issues/52","id":135464402,"number":52,"title":"How to configure Metadata directories","user":{"login":"ohaag","id":6672341,"avatar_url":"https://avatars.githubusercontent.com/u/6672341?v=3","gravatar_id":"","url":"https://api.github.com/users/ohaag","html_url":"https://github.com/ohaag","followers_url":"https://api.github.com/users/ohaag/followers","following_url":"https://api.github.com/users/ohaag/following{/other_user}","gists_url":"https://api.github.com/users/ohaag/gists{/gist_id}","starred_url":"https://api.github.com/users/ohaag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohaag/subscriptions","organizations_url":"https://api.github.com/users/ohaag/orgs","repos_url":"https://api.github.com/users/ohaag/repos","events_url":"https://api.github.com/users/ohaag/events{/privacy}","received_events_url":"https://api.github.com/users/ohaag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T16:16:11Z","updated_at":"2016-02-23T08:25:21Z","closed_at":"2016-02-23T08:25:21Z","body":"Question:\r\nIn the library's documentation, there is a point [Configuring Metadata Locations](https://github.com/willdurand/Hateoas#configuring-metadata-locations).\r\nHowever, I don't understand how to apply that with the bundle: nowhere is mentioned how we have to use the HateoasBuilder in the bundle.\r\n\r\nI think by code inspection that, it could be managed with the Metadata/Driver/DriverChain of jms/serializer but I don't understand how.\r\n\r\nFor example, I want to do the same thing with HateoasBundle than I do here with JMSSerializerBundle:\r\n\r\n```\r\njms_serializer:\r\n    metadata:\r\n        directories:\r\n            DoctrinePHPCR:\r\n                namespace_prefix: \"Doctrine\\\\ODM\\\\PHPCR\"\r\n                path: \"@AppBundle/Resources/config/serializer/DoctrinePHPCR\"\r\n```"},"comment":{"url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/comments/187599441","html_url":"https://github.com/willdurand/BazingaHateoasBundle/issues/52#issuecomment-187599441","issue_url":"https://api.github.com/repos/willdurand/BazingaHateoasBundle/issues/52","id":187599441,"user":{"login":"ohaag","id":6672341,"avatar_url":"https://avatars.githubusercontent.com/u/6672341?v=3","gravatar_id":"","url":"https://api.github.com/users/ohaag","html_url":"https://github.com/ohaag","followers_url":"https://api.github.com/users/ohaag/followers","following_url":"https://api.github.com/users/ohaag/following{/other_user}","gists_url":"https://api.github.com/users/ohaag/gists{/gist_id}","starred_url":"https://api.github.com/users/ohaag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohaag/subscriptions","organizations_url":"https://api.github.com/users/ohaag/orgs","repos_url":"https://api.github.com/users/ohaag/repos","events_url":"https://api.github.com/users/ohaag/events{/privacy}","received_events_url":"https://api.github.com/users/ohaag/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T08:25:20Z","updated_at":"2016-02-23T08:25:20Z","body":"Oh I just found how to do.\r\nMaybe I missed something in the documentation but I think it should explicitly be mentioned either in [(JMS) Serializer Specific](https://github.com/willdurand/Hateoas#jms-serializer-specific) and/or [Configuring Metadata Locations](https://github.com/willdurand/Hateoas#configuring-metadata-locations) that we can directly add Hateoas configuration in the same files than JMS."}}