Skip to content

[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

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

ossinkine
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? no
New feature? no
Deprecations? no
License MIT

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

@nicolas-grekas
Copy link
Member

This should target master.

@fabpot fabpot changed the base branch from 3.4 to master August 26, 2020 07:58
@fabpot fabpot requested a review from xabbuh as a code owner August 26, 2020 07:58
@fabpot
Copy link
Member

fabpot commented Aug 26, 2020

Thank you @ossinkine.

@ossinkine
Copy link
Contributor Author

@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

@nicolas-grekas
Copy link
Member

@ossinkine we can because the code won't change in 3.4+: it's stable.

@ostrolucky
Copy link
Contributor

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.

fabpot added a commit that referenced this pull request Sep 2, 2020
… (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
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
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.

5 participants