Felix Ivan Romero Rodríguez - 2015-11-03 19:09:44
As it is said, dependency injection can be improved using a container, or a service locator. Frameworks use to encapsulate many functionalities in it, then locate it when needed. This behavior is seen in Symfony2 and its DI. Also in projects using Pimple. DI makes usable objects wihtout knowing its composition and the necessary data for instatiating it. You can document yorself in http://www.martinfowler.com/articles/injection.html