What the heck is Dependency Injection?!?!?!
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.
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.