Closed (duplicate)
Project:
Drupal core
Version:
9.0.x-dev
Component:
update.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2020 at 04:16 UTC
Updated:
27 Jan 2020 at 06:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch.
Comment #3
hardik_patel_12 commentedComment #4
naresh_bavaskar#2 works fine. applied successfully.
Comment #5
alexpott@Hardik_Patel_12 thanks for filing this patch. Fixing dependency inject on a class by class basis is going to be quite painful. Please read https://www.drupal.org/core/scope - I think a good scope here would be to combine this with #3107003: \Drupal calls should be avoided in classes, use dependency injection instead in core/modules/update/src/Form classes and do all the injection necessary in core/modules/update/src/Form - there are three forms to update there.
So I'm going to close this as a duplicate of #3107003: \Drupal calls should be avoided in classes, use dependency injection instead in core/modules/update/src/Form classes as that has further instructions on how to do this and respect our BC promise.
Comment #6
hardik_patel_12 commented@alexpott , I got your point .Thankyou.