Services, Dependency Injection, and Containers, oh my!

Jennifer Hodgdon

Drupal 8 introduces the concepts of Services, Dependency Injection, and the Container to Drupal. They my seem a bit mysterious to programmers who are used to working with Drupal 7 or earlier versions. To help clear up the mysteries, this session will answer these questions:

What is a service?
What are those $container variables all over the code?
What are dependencies, and what is injection?
What's the easiest way to interact with services, and ... since you're about to tell me how wrong it is to do it that way, how should I really be doing it in my code?
How can I override a service?
Why is this all important (why did Drupal adopt this conceptual framework in the first place)?

http://2015.tcdrupal.org/session/services-dependency-injection-and-containers-oh-my

Drupal is a registered trademark of Dries Buytaert.