Closed (fixed)
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2023 at 22:15 UTC
Updated:
24 Mar 2026 at 14:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
longwaveThis was easier than I thought. Not sure if #3295751: Autowire core services that do not require explicit configuration should go first or whether we should just commit this all in one go.
Comment #4
smustgrave commentedAutowiring is so cool. Wise I understood the sorcery fully.
But change didn't break anything so seems good.
Comment #6
spokjeIf we have 2 issues about that, let's at least not have duplicate changes in both of them.
Came for the reroll,
stayed for the community, but now removed the changes fromcore/core.services.ymland its testing, since that already/also lives in #3295751: Autowire core services that do not require explicit configuration.Comment #7
spokjeAnd then stuff broke and
testCoreAutowiringshows _way_ less services that could/should be auto-wired, because they are in core.services.yml.Let's just postpone them on getting #3295751: Autowire core services that do not require explicit configuration so we don't have to reroll both on every change in core.services.yml
Comment #8
longwaveLet's postpone this on the other one, it is smaller in scope and hence easier to get in, then this can be rerolled on top.
Comment #9
spokjeWas just about to do that, thanks @longwave
Comment #10
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #11
longwaveComment #13
longwaveGiven we have run into some difficult problems with #3295751: Autowire core services that do not require explicit configuration it might be easier to get this one in first instead. Let's try rerolling and see where we are.
Comment #14
longwaveComment #15
godotislateHave one question on the MR, but otherwise this look close.
Comment #16
dcam commentedThis needs a rebase due to module removals. For the record I haven't done my own review of it yet.
Comment #17
longwaveComment #18
godotislateComments addressed and lgtm.
Comment #19
dcam commentedSorry about this. I started my own review of the former changes hours ago before @godotislate's last reply. But I was making so many notes about new opportunities for autowiring that I eventually decided to start editing it myself. The biggest change is obviously the use of the
#[Autowire]attribute for services. I noticed that these changes were originally written before its introduction. It allowed me to autowire a bunch more of them.I split up the commits by module, aside from the few fixes that came later. So if it's easier for someone to review the changes module-by-module (as opposed to in one big list in the MR changes page), then you have that option.
Comment #20
longwaveThe "that do not require explict configuration" in the title was meant to imply that we would not add any attributes here, but only handle the trivial cases and add attributes for more complex scenarios in followup(s). I thought it would be easier to scope and review the issues this way.
Comment #21
dcam commentedObviously I didn't understand that. Oh well. It's easily reverted. I saved the work that I did in a patch so it can be applied to the next issue.
I reverted all of my commits back to the last thing from @longwave and was RTBC. So I'm resetting that status.
Comment #22
catchNeeds a rebase.
Comment #23
longwaveRebased.
Comment #25
catchCommitted/pushed to main, thanks!