PHP Classes

Dependency Injection

Recommend this page to a friend!

      PHP Dependency Injection Container  >  PHP Dependency Injection Container package blog  >  Improving Your PHP Pr...  >  All threads  >  Dependency Injection  >  (Un) Subscribe thread alerts  
Subject:Dependency Injection
Summary:Ideas about
Messages:1
Author:Felix Ivan Romero Rodríguez
Date:2015-11-03 19:09:44
 

  1. Dependency Injection   Reply   Report abuse  
Picture of Felix Ivan Romero Rodríguez 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