Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Deprecate DoctrineProvider#40908

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@derrabus
Copy link
Member

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?yes
TicketsN/A
LicenseMIT
Doc PRTODO

TheDoctrineProvider class has been reimplemented in thedoctrine/cache package, so we don't have to maintain it anymore.

@derrabus
Copy link
MemberAuthor

cc@alcaeus

@derrabusderrabusforce-pushed theimprovement/deprecate-doctrine-cache-provider branch 3 times, most recently from8b209b9 tob912136CompareApril 22, 2021 10:58
Copy link
Contributor

@alcaeusalcaeus left a comment

Choose a reason for hiding this comment

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

LGTM, but we can allow cache 2.0, which will be released next week.

"require-dev": {
"doctrine/annotations":"^1.10.4",
"doctrine/cache":"~1.0",
"doctrine/cache":"^1.11",
Copy link
Contributor

Choose a reason for hiding this comment

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

This can also allow 2.0 as long as you're not using an actual implementation:

Suggested change
"doctrine/cache":"^1.11",
"doctrine/cache":"^1.11|^2.0",

"symfony/translation":"^4.4|^5.0",
"doctrine/annotations":"^1.10.4",
"doctrine/cache":"~1.0",
"doctrine/cache":"^1.11",
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above with 2.0

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This needs more changes in the Validator component. Under certain circumstances, we still use an array cache from Doctrine. I'll do this in a follow-up.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, thank you!

@derrabusderrabusforce-pushed theimprovement/deprecate-doctrine-cache-provider branch fromb912136 toc4c35d0CompareApril 22, 2021 12:46
@derrabusderrabusforce-pushed theimprovement/deprecate-doctrine-cache-provider branch fromc4c35d0 to5fb1867CompareApril 22, 2021 12:51
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

I'm also 👍 to add^2.0, either in this PR or in a follow up one.

soyuka reacted with thumbs up emoji
Copy link
Member

@NyholmNyholm left a comment

Choose a reason for hiding this comment

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

Would it be simpler if we also updated doctrine/annotations at the same time?

$reader =newPsrCachedReader($this->annotationReader,$arrayAdapter,$this->debug);
}else {
$reader =newCachedReader($this->annotationReader,newDoctrineProvider($arrayAdapter),$this->debug);
$reader =newCachedReader($this->annotationReader, DoctrineProvider::wrap($arrayAdapter),$this->debug);
Copy link
Member

Choose a reason for hiding this comment

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

This line can be removed, right? It is dead code if we also update todoctrine/annotations:1.13.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

As soon as we have a stable release of doctrine/annotations 1.13, yes.

Copy link
Contributor

Choose a reason for hiding this comment

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

doctrine/annotations 1.13 is not released yet and is not sure to be released before the next 5.x release.

Copy link
Member

Choose a reason for hiding this comment

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

oops sorry. I read the wrong version on packagist. I though it was released already.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries. I also misread and it looks like this is scheduled for 5.4 anyways, so we can definitely make that change.

@derrabusderrabusforce-pushed theimprovement/deprecate-doctrine-cache-provider branch from5fb1867 to262ac66CompareMay 14, 2021 22:41
@derrabus
Copy link
MemberAuthor

I'll update the PR as soon as#41230 is merged and has bubbled up to 5.x.

@derrabusderrabusforce-pushed theimprovement/deprecate-doctrine-cache-provider branch from262ac66 to0d0b932CompareMay 17, 2021 20:17
@fabpotfabpotforce-pushed theimprovement/deprecate-doctrine-cache-provider branch from0d0b932 to16fccfaCompareJuly 4, 2021 12:17
@fabpot
Copy link
Member

Thank you@derrabus.

@fabpotfabpot merged commit5010ebd intosymfony:5.4Jul 4, 2021
chalasr added a commit that referenced this pull requestJul 4, 2021
This PR was merged into the 6.0 branch.Discussion----------[Cache] Remove DoctrineProvider| Q             | A| ------------- | ---| Branch?       | 6.0| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       |#40908| License       | MIT| Doc PR        | N/ACommits-------b71101f [Cache] Remove DoctrineProvider
@derrabusderrabus deleted the improvement/deprecate-doctrine-cache-provider branchJuly 26, 2021 18:40
This was referencedNov 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@NyholmNyholmNyholm left review comments

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+2 more reviewers

@alcaeusalcaeusalcaeus approved these changes

@maxheliasmaxheliasmaxhelias approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

7 participants

@derrabus@fabpot@nicolas-grekas@alcaeus@Nyholm@maxhelias@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp