News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ralph Schindler's Blog:
Learning About Dependency Injection and PHP
May 19, 2011 @ 08:57:10

Ralph Schindler has a new post to his blog describing some of the what he's done to understand dependency injection in PHP and includes some illustrations to share that information.

Whatever the reason, one of the newest concepts (at least over the past 3 years or so) that has emerged as one of our heated topics of debate is how to manage object dependencies. Interestingly, the argument of how to manage dependencies is generally named by the solution which it's proponents give as the solution: dependency injection (the abstract principle is actually called Inversion of control).

He starts with simple examples - pushing an object into the creation of another - and backfills with a brief history of dependencies in PHP applications for a little context. He talks about DI frameworks like Spring and some of the other criticisms and thoughts you'll need to consider when using DI (and DI containers) during development and deployment.

0 comments voice your opinion now!
dependency injection di introduction considerations


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Building Web Apps with the Limonade PHP Framework

Symfony Blog: New symfony book: "A Gentle Introduction to symfony 1.4"

Anthony Ferrara's Blog: PHP's Source Code For PHP Developers - Part 1 - The Structure

Box UK Labs: Dependency Injection and Reflection library

FrSIRT: Vivvo Article Management CMS SQL Injection and PHP File Inclusion Vulnerabilities


Community Events

Don't see your event here?
Let us know!


community unittest api framework language conference release laravel series php7 library extension example podcast opinion introduction laravel5 version interview voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework