Problem/Motivation
We should add autowiring for services in the file module. This removes boilerplate and allows more flexibility when creating new definitions.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3534589
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3534589-autowire-services-file
changes, plain diff MR !12655
Comments
Comment #3
kim.pepperComment #4
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 necessarily 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 #5
kim.pepperComment #6
longwaveUsually we don't scope things by module, I think this is a duplicate of #3397041: Autowire core modules that do not require explicit configuration
Comment #8
smustgrave commentedFor the feedback on the MR.
Comment #9
kim.pepperResponded to suggestions. I don't think we should be adding new interfaces in this issue just for the sake of autowiring.
Comment #10
smustgrave commentedLeft some small comments on the MR.
Comment #11
kim.pepperAddressed feedback.
Comment #12
kim.pepperRebased on 11.x and made use of the
FileUsageInterfaceservice alias.Comment #13
smustgrave commentedBelieve feedback has been addressed here
Comment #16
longwaveOn second thoughts maybe per-module (or some other scoping) is easier to review here, trying to do them all in one go is probably too much for a single MR.
Committed and pushed 5cc00cc4bfa to 11.x and 1462e3d2e17 to 11.3.x. Thanks!
Comment #19
smustgrave commentedMaybe a few modules can be grouped together. But all at once seems very hard to review