-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Optimized autowiring breaks existing installations #48138
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
Comments
Nope. This happens when a controller method has a nullable |
@MatTheCat Thanks for the info, but still, it works with |
Would you be able to submit a failing test case maybe? There must be a compiler pass to fix that should skip registering, likely |
@brusch yep. |
Unfortunately I'm not into all details of that topic, but I'll have a look 😉 |
I guess Lines 154 to 156 in f3a180b
Response 🤔
|
@MatTheCat absolutely, that'd do it! |
Are you up for a pull request @brusch? I think you can use |
@MatTheCat unfortunately not within a reasonable time I guess, maybe next week 😳 |
No problem: I opened #48172 for you! |
…roller.service_arguments (MatTheCat) This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [HttpKernel] Don’t try to wire Response argument with controller.service_arguments | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #48138 | License | MIT | Doc PR | N/A Commits ------- 7832d8d [HttpKernel] Don’t try to wire Response argument with controller.service_arguments
@MatTheCat Thank you very much! 💜 |
Symfony version(s) affected
6.2-dev
Description
Regression caused by #46279
Registering
Response
as an abstract service here, causes the following error message:How to reproduce
Just use an existing Symfony project with
6.2-dev
and build the container.See also https://github.com/pimcore/pimcore/actions/runs/3408995937/jobs/5670226500#step:7:702
Possible Solution
Removing the following line fixes the issue for me:
symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/services.php
Line 229 in 739789f
Additional Context
No response
The text was updated successfully, but these errors were encountered: