-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Autowiring does not work for single method #35983
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
i have the same exact situation .. to "fix it" i downgraded "symfony/http-kernel" to "5.0.4" |
Does it mean that the example works with HttpKernel 5.0.4 but fails with 5.0.5? |
@xabbuh yes |
Could anyone of you create a small example application that allows to reproduce it? |
Same here, and @drjele's downgrade fix works. |
Reproducable example https://github.com/Tarasovych/symfony-issue-35983 P. S. It works fine using annotation routes instead of yaml routes |
🕯️ |
you are using |
@nicolas-grekas the culprit is symfony/http-kernel@0f85f7e The issue is that some code was removed due to a comment saying it is deprecated in 4.1. but the corresponding had been un-deprecated in 4.x to allow supporting 3.4 LTS and 4.x at the same time in the ecosystem (see #29218). |
…ollers (nicolas-grekas) This PR was merged into the 5.0 branch. Discussion ---------- [HttpKernel] Fix support for single-colon syntax for controllers | Q | A | ------------- | --- | Branch? | master for features / 3.4, 4.4 or 5.0 for bug fixes <!-- see below --> | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35983 | License | MIT | Doc PR | - This reverts commit 6bb6473, reversing changes made to 4cce23d. As spotted by @stof in #35983 (comment) Commits ------- fbea81c Revert "minor #35559 [FrameworkBundle] remove mention of the old Controller class (nicolas-grekas)"
Symfony version affected: 5.0.5
Description
How to reproduce
composer show -i
:composer.json
:SecurityController
:firewalls
config:services.yml
by default:/login
routePossible Solution
Do not break BC between patch/minor versions
Additional context
5.0.4 is not affected
The text was updated successfully, but these errors were encountered: