We are excited to launch a 30 minute Webinar series on November 18 on the eve of first birthday of Drupal 8. This webinar series is exclusively on Drupal 8, called “Dwell in Drupal 8”. The objective of this series is to share the Drupal 8 learnings through Video Live sessions. The Speakers will be any Drupal Developer who wishes to share their experiences through our Platform.

These sessions will require sign up and we will announce them 10 days in Advance. We are planning to end the session with a Live Q&A. Sign Up now!


Dependency Injection Basics
17 Jan
About Speaker: 

Hussain Abbas works as a Technical Architect at Axelerant. His work focus is architecting solutions using Drupal and enforcing best practices. He has dabbled with x86 assembly, .NET framework, LAMP stack, and related technologies. He also participates in the local developer community meetup for PHP in general and Drupal in particular. He is an expert speaker, organizer of DrupalCons and also co-hosts Podcast series of Axelerant.

Hussain has been working with Drupal for pat 8 years and experienced every stage of Drupal journey from 4.0 to latest Drupal 8 Version. He has contributed to Drupal patches, Drupal modules, Drupal issue queues, Automated tests, Drupal support forums. He also reviewed Project applications, provides Drupal-related services and gives support on IRC.

About Topic:

Dependency injection is an advanced software design pattern. It implements “inversion of control”, which means that reusable code calls task specific code.

We covered basics of understanding Dependency Injection in our previous session. In this session, we will take our understanding further and understand how it is implemented and used in Drupal 8. It is the preferred method for accessing and using services in Drupal 8 and should be used whenever possible. Rather than calling out to the global services container, services are instead passed as arguments to a constructor or injected via setter methods. Many of the controller and plug in classes provided by modules in core make use of this pattern and serve as a good resource for seeing it in action.

We will also see some of the advanced features that allow the site builder or developer to override services and see practical examples. Finally, we will study how modules may implement their own services.

Share On: