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.
Follow up for #2642024: Gateway instances as config entities
Improve namespace and class naming for SmsGateway config entities and SmsGateway plugins to reduce developer confusion.
Comment | File | Size | Author |
---|---|---|---|
#14 | improve_ns_and_naming-2642950-14.patch | 23.33 KB | almaudoh |
#14 | interdiff.txt | 11.75 KB | almaudoh |
#13 | improve_ns_and_naming-2642950-13.patch | 23.15 KB | almaudoh |
#13 | interdiff.txt | 1.34 KB | almaudoh |
#10 | improve_ns_and_naming-2642950-10.patch | 22.88 KB | almaudoh |
Comments
Comment #2
almaudoh CreditAttribution: almaudoh commentedHaving committed #2642024: Gateway instances as config entities, this can now continue.
Comment #3
almaudoh CreditAttribution: almaudoh commentedA starting patch...let's see what breaks.
Comment #6
almaudoh CreditAttribution: almaudoh commentedMissed the new class name in plugin manager constructor...
Comment #7
dpiAll around good improvements!
Comment #8
dpiJust occurred to me that the 'Gateway' directories should be renamed to 'SmsGateway'.
Comment #9
dpiComment #10
almaudoh CreditAttribution: almaudoh commentedRe-rolled patch after #2643252: Transfer Default gateway settings to DefaultSmsProvider and made additional changes per #8.1 for
src/Plugin/SmsGateway
. For src/Gateway, I would prefer to leave as is to reduce verbosity, or alternatively move the plugin classes tosrc/Plugin
Comment #13
almaudoh CreditAttribution: almaudoh commentedNamespaces missed by IDE's automatic refactoring.
Comment #14
almaudoh CreditAttribution: almaudoh commentedMoved plugin classes to
src/Plugin
...Still contemplating a better replacement for
SmsGatewayInterface::getPlugin()
Comment #17
almaudoh CreditAttribution: almaudoh commentedStrange... :/
Comment #18
almaudoh CreditAttribution: almaudoh commentedI think I'll commit this as is for now to unblock other improvements. Committed / pushed to 8.x-1.x.
Comment #20
dpiGood work!
++