The Tale of Dependency Injection in Drupal

Dependency Injection is a design pattern, that brings a new quality to Drupal development. The idea is not new, it originates in Java frameworks released in 2000s. I will show you its history in and explain the usage in Drupal and Symfony - on very simple examples. I will also try to present the most important advantages and disadvantages of using DI in your project.