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

Can't override third party serializer config file #511

Closed
oatto opened this issue Mar 28, 2016 · 1 comment
Closed

Can't override third party serializer config file #511

oatto opened this issue Mar 28, 2016 · 1 comment

Comments

@oatto
Copy link

oatto commented Mar 28, 2016

I'm using symfony v2.8.4-dev and I have noticed that the overriding file didn't work anymore, because symfony doesn't bring the config key as config name.

The temporary solution that I have fixed by adding this line in JMS\SerializerBundle\DependencyInjection\Configuration

->useAttributeAsKey('name')
next to
->arrayNode('directories')
so it becomes:
->arrayNode('directories') ->useAttributeAsKey('name')

Thank you

@goetas
Copy link
Collaborator

goetas commented Apr 10, 2017

duplicate of #531

@goetas goetas closed this as completed Apr 10, 2017
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

2 participants