Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DependencyInjection] PhpDumper.php: hasReference() shouldn't search references in lazy service.#19902
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedSep 11, 2016
Will this also solvedoctrine/DoctrineBundle#562? |
lemoinem left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hello,
Thank you very much for your contribution... Could you re-insert the complete PR summary at the top of your PR. If a line seems irrelevant for your PR, just put N/A instead of removing it.
I think it would also be a nice touch to add a test for this behavior so we make sure the bug doesn't come back to haunt us later on.
nicolas-grekas commentedOct 3, 2016
@antanas-arvasevicius lookingat your comment here, I think we can close this PR, isn't it? |
antanas-arvasevicius commentedOct 3, 2016 • edited by nicolas-grekas
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by nicolas-grekas
Uh oh!
There was an error while loading.Please reload this page.
Hi, no this PR fixes the issue, I'll add some test cases to this PR and |
nicolas-grekas commentedOct 3, 2016
Because reading your comment, you say "it's not due lazy->lazy" :) |
antanas-arvasevicius commentedOct 3, 2016 • edited by nicolas-grekas
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by nicolas-grekas
Uh oh!
There was an error while loading.Please reload this page.
Yes, that doctrine bug is not due lazy->lazy. It's due this bug which was |
nicolas-grekas commentedOct 3, 2016
So, what about:
|
antanas-arvasevicius commentedOct 3, 2016 • edited by nicolas-grekas
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by nicolas-grekas
Uh oh!
There was an error while loading.Please reload this page.
It would be reasonable to do it conditionally because if proxy-manager |
nicolas-grekas commentedOct 5, 2016
I agree :) |
fabpot commentedNov 10, 2016
Anything to be done before merging this one? |
antanas-arvasevicius commentedNov 10, 2016
On Nov 10, 2016 2:26 AM, "Fabien Potencier"notifications@github.com
|
antanas-arvasevicius commentedNov 10, 2016
Hi, needed to add unit test with DI setup which shows correct behavior (no On Nov 10, 2016 7:32 AM, "Antanas Arvasevicius" <
|
stof commentedNov 10, 2016
if B is lazyand we can actually make it lazy (if we cannot generate the lazy proxy, it is the same than not being lazy) |
antanas-arvasevicius commentedNov 10, 2016
Right, but what's the point to allow lazy:true without proxy mngr? Are On Nov 10, 2016 12:11 PM, "Christophe Coevoet"notifications@github.com
|
fabpot commentedNov 10, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
At least for Open-Source bundles, people might tag a service as lazy as an optimization if the end user has the proxy manager and as a noop if it's not installed. |
antanas-arvasevicius commentedNov 11, 2016
Added unit tests, And also had found out that CheckCircularReferencesPass detects circular references. I've applied patch for that too. Please review. |
antanas-arvasevicius commentedNov 22, 2016
@fabpot could this be merged now? Or there are any problems? |
nicolas-grekas commentedNov 25, 2016
rebase needed |
antanas-arvasevicius commentedNov 28, 2016
Rebase onto what? Haven't thought that bug fix could take so long to be applied... I really do not understand how your bug fix apply policy works, but it sucks. Bye. |
HeahDude commentedNov 28, 2016
A rebase on the target branch of this PR which is 2.7, since some other commits have changed some files modified in this PR, you need to resolve some conflicts so maintainers are able to merge it automatically. Thank you for contributing. |
… references in lazy service arguments.
antanas-arvasevicius commentedNov 28, 2016
Thanks for explanation. Now rebased my branch. Is this fix will be available in 2.8 .. 3.1 also? |
HeahDude commentedNov 28, 2016
Yes it will ;) |
HeahDude commentedDec 3, 2016
👍 Status: Reviewed |
nicolas-grekas commentedDec 3, 2016
👍 (the $isLazy temp var could be removed) |
fabpot commentedDec 3, 2016
Thank you@antanas-arvasevicius. |
…n't search references in lazy service. (antanas-arvasevicius)This PR was merged into the 2.7 branch.Discussion----------[DependencyInjection] PhpDumper.php: hasReference() shouldn't search references in lazy service.| Q | A || --- | --- || Branch? | 2.7 || Bug fix? | yes || New feature? | yes || BC breaks? | no || Tests pass? | yes || Fixed tickets |#19901 || License | MIT || Doc PR | N/A |more info:#19901Commits-------595a978 [DependencyInjection] PhpDumper.php: hasReference() should not search references in lazy service arguments.
gxolin commentedDec 5, 2016
Thank you@antanas-arvasevicius. |
wouterj commentedDec 5, 2016
@gxolin it's always the next release. So 2.7.22 |
antanas-arvasevicius commentedDec 5, 2016
no prob :) |
Uh oh!
There was an error while loading.Please reload this page.
more info:
#19901