[PHP] Dependency Injection containers

2011-10-31 Thread robert mena
Hi, I am trying to avoid reinventing the wheel so I am looking for dependency injection containers that work with PHP 5.2. So Symphony2 and ZF2 DI are out of question. I found this http://www.potstuck.com/2010/09/09/php-dependency-a-php-dependency-injection-framework/ but I was wondering if

Re: [PHP] Dependency Injection containers

2011-10-31 Thread jean-baptiste verrey
Hi, you could simply write your own, you simply need a class or a function that given an identifier such as database.connector would return you an instance of it, and and maybe handle singletons. It just a question of taste of how you want it to be. I have just posted a few days ago my