2013年1月10日星期四

Anthony Ferrara: Programming With Anthony - Dependency Injection


Anthony Ferrara has posted his latest video tutorial in his series, this time covering dependency injection (mostly the concepts, not the implementation).



This week, we're going to talk about the topic of Dependency Injection in Object oriented code (specifically PHP). You don't need a fancy container to do it, it's actually quite simple to do manually!


He also talks some about the difference between a dependency injection container and a service locator. This is just the latest in his video series - he has others covering things like prepared statements, encryption and references in PHP.

没有评论:

发表评论