Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Metadata directories #52

Closed
ohaag opened this issue Feb 22, 2016 · 1 comment
Closed

How to configure Metadata directories #52

ohaag opened this issue Feb 22, 2016 · 1 comment

Comments

@ohaag
Copy link

ohaag commented Feb 22, 2016

Question:
In the library's documentation, there is a point Configuring Metadata Locations.
However, I don't understand how to apply that with the bundle: nowhere is mentioned how we have to use the HateoasBuilder in the bundle.

I think by code inspection that, it could be managed with the Metadata/Driver/DriverChain of jms/serializer but I don't understand how.

For example, I want to do the same thing with HateoasBundle than I do here with JMSSerializerBundle:

jms_serializer:
    metadata:
        directories:
            DoctrinePHPCR:
                namespace_prefix: "Doctrine\\ODM\\PHPCR"
                path: "@AppBundle/Resources/config/serializer/DoctrinePHPCR"
@ohaag
Copy link
Author

ohaag commented Feb 23, 2016

Oh I just found how to do.
Maybe I missed something in the documentation but I think it should explicitly be mentioned either in (JMS) Serializer Specific and/or Configuring Metadata Locations that we can directly add Hateoas configuration in the same files than JMS.

@ohaag ohaag closed this as completed Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant