There's a lot of code in system module dealing with modules, themes, profiles, etc... These are long functions pretty hard to understand mostly because we use huge arrays of data all the time, that need to be refreshed very often. I am talking about:
system_rebuild_module_data()
_system_reguild_module_data()
system_rebuild_theme_data()
_system_rebuild_theme_data()
The actual problem is these arrays somehow 'propagate' and they reach a maximum complexity in the update module, which needs to handle arrays of projects that are arrays of modules, themes, that are arrays of data....
The idea is to move this code out of system.module and into wrapper classes for Module, Theme, etc..
This patch is just a start, it just adds some classes, still WIP.
Comment | File | Size | Author |
---|---|---|---|
system_modules-01.patch | 16.92 KB | Jose Reyero | |
Comments
Comment #11
quietone CreditAttribution: quietone at PreviousNext commentedThese have been replaces with a service, system_rebuild_module_data was replaced with a service in Drupal 8.8 and for theme is was done in 8.0.
Closing as outdated.