Skip to content

[FrameworkBundle] AnnotationsCacheWarmer should support doctrine/annotations:^1.13 #40444

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

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Mar 11, 2021

Q A
Branch? 5.x
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #40353
License MIT
Doc PR

The AnnotationsCacheWarmer is creating a cached a new CachedReader in the doWarmUp(). But this will fail if doctrine/cache is not installed. In #40338 I added the kernel.cache_warmer tag on annotations.cache_warmer service even though the doctrine/cache is not installed.

This PR will make sure AnnotationsCacheWarmer is using the PsrCacheReader when available.

This bug was not found in the tests because doctrine/cache is always installed.


Big golden star to @jrushlow because you test dev-master.

Copy link
Contributor

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix @Nyholm!

@fabpot
Copy link
Member

fabpot commented Mar 12, 2021

Thank you @Nyholm.

@fabpot fabpot merged commit 5d72815 into symfony:5.x Mar 12, 2021
fabpot added a commit that referenced this pull request May 31, 2021
This PR was merged into the 5.3 branch.

Discussion
----------

[FrameworkBundle] Remove redundant cache service

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

Follows #40444 and #41230.

`@Nyholm` and I have fixed the same problem on different branches. Merging both efforts, we've created two cache services that are supposed to serve the same purpose. This PR suggests to remove one of them.

Commits
-------

3b197fe [Framework] Remove redundant cache service
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.

[FrameworkBundle] cache:clear fails with doctrine annotations
4 participants