Symfony Components

Getting Cozy with Dependency Injection

Piers

Tuning into some of the discussion on Drupal 8’s new additions, you may have heard about the Dependency Injection Component from the Symfony project. Its inclusion is one of the many architectural changes helping Drupal modernise its approach to code organization.

In this brief introduction, I'll endeavour to explain the concept of Dependency Injection, and see how it impacts our code, hopefully demystifying a topic which is simpler than you might think.

You got Symfony in my Drupal 8!

Geoffrey

*updated to include clarification about DI*

If you’re working with Drupal, you’re probably aware that the next major release of Drupal is going to integrate with the wider PHP ecosystem in a big way. Its adoption of Symfony is a really big deal, not just for Drupal developers who will have a lot to learn, with access to a huge stable of components as a trade-off. It’s also a big deal for Symfony developers, who have a whole new platform to develop for, and also the PHP community at large, who Drupal developers are now able to contribute to at a much deeper level. 

We had a look around for a comprehensive list of Symfony components that are going to be in Drupal 8, but we couldn’t really find one that was up to date. For your benefit, here’s a list we put together that outlines the current list of Symfony components used in Drupal 8.

Subscribe to Symfony Components

glqxz9283 sfy39587p10 mnesdcuix7