Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The following class constructor use ModuleHandler instead of ModuleHandlerInterface, adding faulty dependency to ModuleHandler:
- \Drupal\user\AccountSettingsForm
- \Drupal\field\FieldStorageConfigStorage
Proposed resolution
They should be changed to use the ModuleHandlerInterface
User interface changes
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
#1 | faulty_dependency_to-2501577-1.patch | 3.91 KB | willzyx |
Comments
Comment #1
willzyx CreditAttribution: willzyx commentedComment #2
dawehner+1
Comment #3
dawehnerProbably needs a short beta evaluation ...
Comment #4
alexpottActually I think using a concrete class when there is an interface for a service is a bug. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 1fc6e00 and pushed to 8.0.x. Thanks!
Comment #6
cilefen CreditAttribution: cilefen commentedComment #7
cilefen CreditAttribution: cilefen commentedOh, I thought this was still open.