Commanding Chaos for Coworking, Open Source and Creative Communities

Drupal 8 Services, Dependency Injection, and Decoupling Your Code | FFW

Wed, 11/04/2015 - 08:53 -- rprice

Notice that while there are lots of OOP-isms in this project, we never really had to use the new keyword. We are not in the weeds instantiating objects, just snapping together Services, Config and finishing everything off in the Drupal UI. Once you learn how to work with Services and Dependency Injection, you'll be thinking at a higher level and you can focus on one specific task. This is one of the promises of Drupal to solve 80% of the problems for you and let you focus on the 20% of your project that is unique.