tag:blogger.com,1999:blog-36547168.post348519117850250877..comments2023-11-25T11:00:42.257+01:00Comments on Invisible to the eye: How to eliminate singletons (part 2)Giorgiohttp://www.blogger.com/profile/03558287012747987157noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-36547168.post-78161126141048917912010-03-10T19:54:13.577+01:002010-03-10T19:54:13.577+01:00Not bad article, but I really miss that you didn&#...Not bad article, but I really miss that you didn't express your opinion, but ok you just have different approachAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-55962118117089074662009-11-20T11:32:11.711+01:002009-11-20T11:32:11.711+01:00The Symfony DI Component is my favourite, too.
Ni...The Symfony DI Component is my favourite, too.<br /><br />Nice clean interface,<br />unit tested,<br />upcoming PHP 5.3 Version announced,<br />well documented,<br />easy to integrate, even in existing Zend based Projects.<br /><br />At the moment, i donĀ“t see a reason to build up a custom DI container.<br /><br />Like Fabien Potencier said in on of his talks, use Zend Framework and Symfony Parts together in your projects.<br /><br />It really gives you benefits...Sebastian G.noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-77499253661907765882009-11-15T12:33:50.311+01:002009-11-15T12:33:50.311+01:00The singletons elimination process is scheduled fo...The singletons elimination process is scheduled for 2.0, so there are no problems with backward compatibility breaks. The constructor signature can be deleted if needed. :)Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-32283961399087489092009-11-15T03:25:12.120+01:002009-11-15T03:25:12.120+01:00I've been using DI using the Symfony DI contai...I've been using DI using the Symfony DI container for some time now. It integrates smoothly into Zend_Application, transparently taking of the container. <br />The biggest problem is that the current interface for controller actions has a constructor in the interface (which doesn't make sense for several reasons). Even if you replace the controller instantiating code in the Dispatcher with a ControllerFactory, you can't inject any meaningful, unless you're DI container can inject into already existing objects using setter injection. I think a lot can be learned by looking at the interfaces and moving pieces in ASP.NET MVCs implementation.Avi Blockhttp://www.aviblock.comnoreply@blogger.com