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

Fix decoration of cache adapters inheriting parent service #525

Merged

Conversation

ste93cry
Copy link
Contributor

Fixes #524: when running a compiler pass during the TYPE_BEFORE_OPTIMIZATION phase, services inheriting a parent one have not been resolved yet and consequently their class is still set to null. This was causing the check to decorate the cache adapter according to whether they were implementations of the TagAwareAdapterInterface interface or not to fail, resulting in the decorator to always inherit the base AdapterInterface interface even when the adaptor should have been an instance of TagAwareAdapterInterface

@ste93cry ste93cry added this to the 4.1 milestone Jun 16, 2021
@ste93cry ste93cry requested a review from Jean85 June 16, 2021 21:00
@ste93cry ste93cry requested a review from Jean85 June 17, 2021 16:22
@Jean85 Jean85 merged commit 551b0b6 into master Jun 18, 2021
@Jean85 Jean85 deleted the fix/cache-tracing-pass-broken-with-service-inheriting-parent branch June 18, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache tracing causes bug when using TagAwareCacheInterface
2 participants