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

[ProxyManager] isProxyCandidate() does not take into account interfaces#31551

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

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromandrerom:lazy_interface
May 20, 2019

Conversation

@andrerom
Copy link

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRN/A

When using factories it's common best practice to use interface as class name, especially in cases
where you know implementation can differ. Before this fix ProxyManager did not allow these to be lazy.

As we have have this issue on 2.8 and 3.4. it's very hard to debug, and goes against best practice for factories to not fix it, this is suggested for 2.8.

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.

(but for 3.4 as 2.8 is EOLed)

…nterfacesWhen using factories it's common best practice to use interface as class name, especially in caseswhere you know impl can differ. Before this fix ProxyManager did not allow these to be lazy.In our case this has lead several to hard to debug issues on classes we need to mark as lazyiand often a need to add lazy on decorators if there are any or other workarounds.As we have had this issue, and still have on both 2.8 and 3.4 this is opened against 2.8.
@andreromandrerom changed the base branch from2.8 to3.4May 20, 2019 11:04
@nicolas-grekas
Copy link
Member

Thank you@andrerom.

@nicolas-grekasnicolas-grekas merged commite3739b1 intosymfony:3.4May 20, 2019
nicolas-grekas added a commit that referenced this pull requestMay 20, 2019
…nt interfaces (andrerom)This PR was merged into the 3.4 branch.Discussion----------[ProxyManager] isProxyCandidate() does not take into account interfaces| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        | N/AWhen using factories it's common best practice to use interface as class name, especially in caseswhere you know implementation can differ. Before this fix ProxyManager did not allow these to be lazy.As we have have this issue on 2.8 and 3.4. it's very hard to debug, and goes against best practice for factories to not fix it, this is suggested for 2.8.Commits-------e3739b1 [Bridge\ProxyManager] isProxyCandidate() does not take into account interfaces
@andreromandrerom deleted the lazy_interface branchMay 20, 2019 13:23
This was referencedMay 22, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@andrerom@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp