Problem/Motivation
Let's add dependency injection and split the classes.
We can also consolidate some helper functions.
Steps to reproduce
N/A
Proposed resolution
Move hooks to *.api.php with exceptions below.
Move _update_notify to cron
Add DI
Exceptions
module / theme install / uninstall are in one hook class since they call the same function
Isolate following hooks since they have a bunch of dependencies that would crowd other classes.
- page_top
- cron
Remaining tasks
Review
User interface changes
N/A
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|
Issue fork drupal-3545284
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:
Comments
Comment #2
nicxvan commentedComment #3
nicxvan commentedComment #5
nicxvan commentedComment #6
nicxvan commentedComment #7
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 #8
dww#3125013: Refactor update.fetch.inc into a MailHandler is already handling parts of this.
Comment #11
sivaji_ganesh_jojodae commentedI have rebased the branch and resolved the pipeline issues.
Comment #12
dwwPer #8, this MR is duplicating effort from #3125013: Refactor update.fetch.inc into a MailHandler. Let's stop here and wait for that to land (since it's already RTBC, and more important for the effort to remove procedural .module and .inc files). Thanks!
Comment #13
dww#3125013: Refactor update.fetch.inc into a MailHandler is in. This needs to be rebased vs. main and conflicts resolved.
Thanks,
-Derek