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
In \Drupal\user\UserStorage the constructor has the password service injected.
This is never used. Instead, it seems it's fetched from \Drupal in \Drupal\Core\Field\Plugin\Field\FieldType\PasswordItem
Proposed resolution
Change the constructor so that the password service is not injected, and remove the unused class variable that hold it.
Remaining tasks
User interface changes
none
API changes
Service constructor change
Data model changes
none
Comment | File | Size | Author |
---|---|---|---|
#13 | 2648290-13.patch | 2.54 KB | naveenvalecha |
#13 | interdiff-2648290-11-13.txt | 1.13 KB | naveenvalecha |
#11 | 2648290-removed-constructor-9.patch | 1.87 KB | naveenvalecha |
#9 | 2648290-removed-constructor-8.patch | 1.65 KB | shabirahmad |
| |||
#7 | interdiff.txt | 1.65 KB | shabirahmad |
Comments
Comment #2
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedComment #3
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedpatch!
Comment #4
naveenvalechalooks good to go.Bot will be happy
Comment #5
swentel CreditAttribution: swentel commentedI think we can remove the __construct and createInstance underneath as well
Comment #6
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedComment #7
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedComment #8
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedComment #9
shabirahmad CreditAttribution: shabirahmad as a volunteer commentedComment #11
naveenvalechaStraight Reroll
Comment #13
naveenvalechaI suspect the above failures were random.let's see
Removed the unused use statements and password property.
Comment #14
swentel CreditAttribution: swentel commentedSweet code cleanup.
Comment #18
dpiDuplicate #2648290: Removed unused password service injected into \Drupal\user\UserStorage