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

Make getCache method internal #166

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Apr 13, 2021

One big problem while sunsetting doctrine/cache is the fact that metadata factories leak their cache instance. To avoid such problems in the future, the getCache method is changed to final protected. This allows extending classes to make use of the cache while ensuring that the cache can't be leaked outside of the class.

@alcaeus alcaeus requested a review from derrabus April 13, 2021 08:42
@alcaeus alcaeus self-assigned this Apr 13, 2021
@alcaeus alcaeus removed the request for review from derrabus April 13, 2021 10:29
@alcaeus alcaeus added this to the 2.2.0 milestone Apr 13, 2021
@alcaeus alcaeus merged commit c0fbcd8 into doctrine:2.2.x Apr 13, 2021
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.

2 participants