-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[FrameworkBundle] Make AbstractPhpFileCacheWarmer public #37951
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
[FrameworkBundle] Make AbstractPhpFileCacheWarmer public #37951
Conversation
|
This should target master. |
|
Thank you @ossinkine. |
3736d25 to
a0fb442
Compare
|
@nicolas-grekas if this will be released only in 5.2 we still can't use this in bundles which support LTS f.e. 3.4 because the warmer is still internal there |
|
@ossinkine we can because the code won't change in 3.4+: it's stable. |
|
Not sure why it wasn't merged lower. People are still discouraged to extend this on lower versions for no reason, while it is no longer internal in higher versions. This now requires workarounds on lower versions because of phpunit bridge failures. |
… (ossinkine) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Make AbstractPhpFileCacheWarmer public | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT The same as #37951 but with 3.4 as base branch, see doctrine/DoctrineBundle#1196 (comment) cc @nicolas-grekas Commits ------- b82d9a2 Make AbstractPhpFileCacheWarmer public
Introducing the PhpArrayAdapter was a great feature. It has proven itself well in the production.
Actually, using the adapter is closely related to warming up the cache for it. FrameworkBundle has an AbstractPhpFileCacheWarmer for conveniently creating a custom warmer.
But using it outside of the FrameworkBundle becomes more complicated because it is marked as internal.
I propose making it public and allow it to be used outside of the FrameworkBundle.
For example, I've proposed to cache Doctrine metadata using PhpArrayAdapter and the implementation uses AbstractPhpFileCacheWarmer doctrine/DoctrineBundle#1196