-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[DependencyInjection][HttpKernel] document Autowire
attribute
#16629
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
Conversation
b7ee351
to
a7c791f
Compare
I believe the "Code Blocks" action will be fixed with #16627. |
controller.rst
Outdated
// ... | ||
|
||
/** | ||
* @Route("/lucky/number/{max}") |
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.
Maybe something to do in another PR, but why don't we use the attribute style? Especially with this feature from Symfony 6.1
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.
Agree, was just following the method from the other examples in this file. Probably a separate PR is best.
ba58c0d
to
f32aec1
Compare
Thank you @kbond. Pretty cool feature, and with great docs :) I've moved things around, to not duplicate too much. To be honest, the service container articles need some rewriting in general, so the place is not ideal at the moment, but I think having it in the autowiring article makes most sense. |
…kbond) This PR was squashed before being merged into the 6.1 branch. Discussion ---------- [DependencyInjection] adjust `Autowire` attribute docs Follow up to #16629 per slack discussion. For services and expressions, explicitly use the named argument. Commits ------- fd05739 [DependencyInjection] adjust `Autowire` attribute docs
Symfony PRs: symfony/symfony#45657 & symfony/symfony#45783
Closes #16625.
Closes #16636