Chris J. Lee

Dallas Drupal Developer

You are here

What is a service container?

Been hearing the term, 'service container' often. Finally found a good and simple definition in the symfony2 book:

A Service Container (or dependency injection container) is simply a PHP object that manages the instantiation of services (i.e. objects).

Source: Symfony2 Book

Tags: 
symfony2d8
© 2017 Chris J. Lee