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

Support for PSR-6 result caches #8996

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 9, 2021

Follows doctrine/dbal#4620

DBAL 3.2 will deprecate Doctrine Cache in favor of PSR-6 for result caches. This PR makes sure we call the non-deprecated methods.

I've also added a CI job that runs against a dev snapshot of DBAL, so we can actually test my changes.

@derrabus derrabus added this to the 2.10.0 milestone Sep 9, 2021
@@ -24,6 +24,8 @@ jobs:
include:
- php-version: "8.0"
dbal-version: "2.13"
- php-version: "8.0"
dbal-version: "3.2@dev"
Copy link
Member

Choose a reason for hiding this comment

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

What should happen to this when 3.2.0 is released? Should we change it to whatever the latest 3.1.x is then?

Copy link
Member Author

Choose a reason for hiding this comment

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

We heavily depend on DBAL. I think we should always have a CI job that checks against a dev version of DBAL. When 3.2.0 is released, this job will test against 3.3-dev automatically and I think that's fine.

Copy link
Member

@greg0ire greg0ire Sep 11, 2021

Choose a reason for hiding this comment

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

Is there a syntax we could use to avoid this 2 being hardcoded here? It's a bit misleading. 3@dev maybe?

@greg0ire
Copy link
Member

I pushed an extra commit with tests for some of the uncovered paths, let's see if the build still passes.

@greg0ire greg0ire force-pushed the improvement/psr6-result-cache branch 2 times, most recently from 9db2e03 to 7291489 Compare September 10, 2021 21:39
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

@derrabus please review my commit and fix it up if it looks good to you

Co-authored-by: Grégoire Paris <[email protected]>
@derrabus
Copy link
Member Author

please review my commit and fix it up if it looks good to you

Done!

@greg0ire greg0ire merged commit 01ab70d into doctrine:2.10.x Sep 11, 2021
@greg0ire
Copy link
Member

Thanks @derrabus !

@derrabus derrabus deleted the improvement/psr6-result-cache branch September 11, 2021 12:06
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