Dependency Injection and Service Containers

a_thakur
Introduction

Dependency Injection is a known design principle in software engineering and it has been embraced closely while developing Drupal 8. The dependency injection component of Symfony makes it fairly easily to manage dependencies in your php code and concept of service containers further enhances the experience, making managing dependencies so trivial.

Key takeaways from the session In this session we will talk about
  • Introduction to dependency injection and service containers

  • Introduction to dependency injection component of Symfony

  • How dependency injection and services are managed in Drupal 8

  • A walkthrough of a real life problem in Drupal 7 where we had created a standalone query builder service using Doctrine and Dependency Injection component of Symfony

At the end of this session the participants would have sufficient knowledge of Dependency Injection and Service Containers and enough guidelines to build standalone components in their work.

Session Track

Symfony

Experience Level

Intermediate

Drupal Version