Services, Dependency Injection, and Containers, oh my!

Speakers: 

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)?

The speaker, Jennifer Hodgdon (jhodgdon), is a Drupal Core committer, a member of the Drupal Documentation Working Group, a frequent Drupal 8 patch contributor, the maintainer of several Drupal 8 core components and a few contributed modules on Drupal.org, and the author of Programmer's Guide to Drupal from O'Reilly.

Schedule info
Track: 
Coding and Development
Experience level: 
Intermediate
Drupal Version: 
Drupal 8.x
Status: 
Unprocessed