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.
according to https://www.drupal.org/docs/8/api/services-and-dependency-injection/serv...
see https://www.youtube.com/watch?v=0SdBVmxuCZg
possible next steps: split up "geolocation.core service", create base classes with interfaces, make "geolocation" more plugable (extendable), ...
Comment | File | Size | Author |
---|---|---|---|
use_DI_pattern.patch | 20.54 KB | slasher13 | |
Comments
Comment #2
slasher13Comment #3
derjochenmeyer CreditAttribution: derjochenmeyer as a volunteer and at forward-media.de commentedThanks a lot for the refactoring and for the video link. The new code is also much easier to read / understand. A really good resource for learing symfony / design patterns is laracasts.com.
Comment #4
ChristianAdamski CreditAttribution: ChristianAdamski commentedI wouldn't trust that slasher13 guy. Probably some evil hacker! :)
I'll commit his code later, we discussed that already in person.
Comment #6
ChristianAdamski CreditAttribution: ChristianAdamski commented