"Dependency injection is all about dependency inversion" and why you should care about it!

onema

Dependency injection is all about dependency inversion! This means that your code should really on abstractions rather than concrete implementations. This makes your code more modular, extensible, easy to maintain, and all around awesome... until you have to instantiate and object of a class that requires one, two or more dependencies; instantiation can be verbose and often times confusing.

Here is where the Symfony DependencyInjection (DI) Component comes to the rescue. The DI Component will enable you to streamline the way objects are created in you application.

In this session we will take a close look at what Dependency Injection is, how the Dependency Injection component works and how to use it in your own projects.

Session Track

Symfony

Experience Level

Advanced

Drupal Version