New Videos on Dependency Injection Containers (so much cooler than they sound)
In Drupal 8, everything comes back to the Dependency Injection Container (or DIC). Throughout the "Drupal 8 Developer Prep" series, we've been building up to the point where we can understand exactly what the DIC is for, and how it works under the hood. This week we wrap up our DIC coverage and briefly take a look at the incredible amount of ground we've covered so far in this series. If you've made it this far, give yourself a big hug. Nice work. :)
Now that you have a dependency injection container at your disposal, it seems like a convenient tool to use anytime you need an object. But, to keep our code testable, we still have to use dependency injection to get objects into other objects. In this video we explain why.
We have our dependency injection container up and running, so in this video we update our framework code to use it. Instantly making it testable and more flexible.
Not only can we use our dependency injection container to hold instances of objects, we can also store variables or properties in it, too. In this video we show a couple of practical use cases.
(FREE!) An overview of what we learned in these Symfony videos - 5:56
In the last 70 videos or so, you’ve learned a lot about Symfony and also about object-oriented coding in general. In this video we give a recap of the main things we covered, and encourage you to work through the videos a couple of times to really build your chops.