2nd - 4th March 2018

City, University London

Drupal 8 Services And Dependency Injection

Prerequisites

You should have a working knowledge of Drupal 8 and have written (or looked at) module code. Having some basic object oriented PHP experience is also a must as I'll be going through some code examples containing objects.

Session content

Using the service manager is an essential part of a Drupal 8 developers toolkit and understanding it not only helps development, but can also allow you to create modules that can be easily used by other developers. There are numerous code examples out there that talk about using this or that service, so I'll look at how to go from "\Drupal::service('thing');" to finding and using services within Drupal 8. I will look at creating custom services to use within your own modules and provide injectable dependencies for other modules. I will also show how to override services to provide your own functionality to existing services. All code shown will be real examples that you can take away and use in your own projects.

Author
philipnorton42
Skill level
Good working knowledge
Track
Coding and Development
Session room
B200
Session day
Saturday

Keynote speakers

Ryan Szrama

Commerce Guys

Ryan Szrama

Ryan got his start in web development through an online sales company based in Louisville, KY. It was there that he nursed Ubercart through its infancy to its use on over 20,000 websites as the Project Lead and community face of the project.

In 2009, Ryan co-founded Commerce Guys and eventually led the development of Drupal Commerce for Drupal 7. He grew the new project from its first full release at DrupalCon London to its use today on over 60,000 websites.

As of February 2016, Ryan acquired control of Commerce Guys and assumed leadership of the business with his time split between managing the company and contributing to its various open source projects.

Chris Teitzel

Lockr

Chris Teitzel

Chris has been part of the Drupal community for 8 years and during that time has been fortunate enough to be involved in all aspects of the community. Originally part of the team supporting the Omega theme, he helped drive documentation and community support to lower the bar for theming in Drupal. He’s since been involved in projects spanning the globe working with all levels of business from top enterprises to startups building everything from bootstrapped humanitarian tools based on SMS to airline ticketing systems built in Drupal Commerce. In the recent years he has set his sights on security in Drupal and specifically around data privacy and security to again lower the bar for developers to adhere to best practices.

Baddý Sonja Breidert

1xINTERNET

Baddý Sonja Breidert

Baddý Sonja Breidert (baddysonja) is the CEO and Co-Founder of 1xINTERNET, one of the largest Drupal web agencies in Germany. 1xINTERNET has offices in Germany and Spain and has clients all over Europe.

Baddý graduated with B.Sc. in Computer Science from the University of Reykjavik in 2003 and after that completed her M.Sc. in Engineering Management from the Technical University in Vienna, where she today teaches Agile Project management and IT. She is also an European champion in Robotic Soccer - where she competed with her University in 2008.

Baddý has been very active in the Drupal community and has organised conferences and events both in Iceland and Germany. Currently she is one of the main organisers of Drupal Europe, which will take place in fall 2018.

Diamond

Drupal apprentices

The best people to train new developers are developers

The Drupal Apprenticeship Scheme will be running a London intake in March. If you are interested in hiring an apprentice or know someone who would benefit from the scheme please get in touch via the link below.

  • Created and run by experienced developers
  • Teaches core skills and best practice
  • Extensive support for businesses and teams

We are also really keen to hear from people who might be interested in mentoring, training and helping us to develop and review training materials to make sure they stay absolutely current and relevant.

Find out more

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from drupal.org to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association

Hosting provided by

platform.sh