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
add CacheClearer #839
add CacheClearer #839
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've released your changes in the metadata package as 2.5.0 (see https://github.com/schmittjoh/metadata/releases/tag/2.5.0)
can you add it as requirement in the composer.json?
thank you! |
@goetas Is it acceptable that it failed the test with --prefer-lowest? |
Hmm, I did not notice that... Ideally it should be fixed... 😔 |
@goetas problem in CacheClearerTest. I can rewrite it according to |
@@ -233,6 +233,11 @@ | |||
<tag name="jms_serializer.deserialization_visitor" format="xml" /> | |||
</service> | |||
|
|||
<service id="jms_serializer.cache.cache_clearer" class="JMS\SerializerBundle\Cache\CacheClearer" public="false"> | |||
<argument type="service" id="jms_serializer.metadata.cache"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is missing on-invalid="null
entry, as disabling cache (with cache: none
) is broken now.
The constructor should be updated to accept null then. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it ASAP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already opened a PR #850., would be nice if you could review it. 👍
Works only with schmittjoh/metadata#97