What the heck is Dependency Injection?!?!?!

43:57
7
0
0
0
0
Jun 14, 2019

Salman Jaffery

We all must have heard about dependency injection one way or another but what the heck is it and how and why do we use it.

With Drupal 9 on the horizon, functional programming is on the way with a lot of the functions that we have come to rely biting the dust (DEPRECATED) one after another.

As such if we are to do object oriented programming properly, one topic that we must learn to understand is Dependency Injection or passing stuff into out classes and objects.

Lets explore this together and see how it works with Drupal 8.

Salman Jaffery
Senior Developer, Woodlawn, @sjpeters79
Salman is an experienced Drupal Developer working at Coldfront Labs Inc. Having started with Drupal 7 in 2014 and now working with Drupal 8 for the last two years, he's touched a lot of Drupal's core features and systems. He also runs DrupalYOW monthly meetups in Ottawa. Outside of drupal, family, social events, personal pet projects and video games occupies his time.

https://drupalnorth.org/en/session/what-heck-dependency-injection

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.