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

Configuration property enable_cache is missing #712

Closed
nitso opened this issue Dec 25, 2018 · 3 comments
Closed

Configuration property enable_cache is missing #712

nitso opened this issue Dec 25, 2018 · 3 comments

Comments

@nitso
Copy link

nitso commented Dec 25, 2018

I'm configuring bundle as of actual documentation (I'm using v3.0.1, but master has the same): https://github.com/schmittjoh/JMSSerializerBundle/blob/master/Resources/doc/configuration.rst#L143

But there is no enable_cache support in code:
https://github.com/schmittjoh/JMSSerializerBundle/blob/3.0.1/DependencyInjection/Configuration.php#L121

So I get error:

Symfony\Component\Config\Definition\Exception\InvalidConfigurationException : 
  Unrecognized option "enable_cache" under "jms_serializer.property_naming". 
  Available options are "id", "lower_case", "separator".

Where is the error: cache is not supported or the configuration option is missing?

@goetas goetas closed this as completed in 923c6c9 Dec 25, 2018
@goetas
Copy link
Collaborator

goetas commented Dec 25, 2018

enable_cache has been removed. In the new jms/serializer property names are cached at cache-warmup time, so they are "always" cached

@goetas
Copy link
Collaborator

goetas commented Dec 25, 2018

I have updated the docs

@nitso
Copy link
Author

nitso commented Dec 25, 2018

Thanks! Incredibly fast 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants