News Feed
Sections




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

Sam Hennessy's Blog:
A Dependency Injection for PHP Manifesto '" Part 2 (Why I Want It)
July 09, 2009 @ 08:15:07

In this new post to his blog today Sam Hennessy continues his "dependency injection manifesto" series and shares why he wants it. The previous parts talked about what DI is and what he wanted from it. This time he talks about why he wants it included.

A DI framework is predominantly interested in the creating and plumbing together of objects. The work of creating and plumbing together objects is mostly very simple, as such do don't need a framework to do any of it. [...] In the end, the reasoning for using a DI framework should be the same reasoning for use of any library or framework.

He breaks it down into a series of reasons why it would be beneficial to the general PHP development community:

  • Increased usability
  • Easier to maintain
  • Makes for simpler unit testing
  • Less invasive code
  • Removing the need for boilerplate code

There's lots more good stuff in there than this, so be sure to check out the rest of the post for more of his thoughts.

0 comments voice your opinion now!
manifesto injection dependency


blog comments powered by Disqus

Similar Posts

Josh Adell: Migrating to Dependency Injection

PHP Thinktank Blog: New Discussions (IRC Talks Series)

Sam Hennessy's Blog: A Dependency Injection for PHP Manifesto - Part 1 (What I Want)

Kevin Schroeder's Blog: Handling ZF2 FQ Dependency Setter Injections

Greg Beaver's Blog: Be careful of PEAR 1.4.4 and older installs when uninstalling a package


Community Events





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


laravel podcast introduction deployment interview zendserver framework api code language conference development threedevsandamaybe bugfix series tips community release symfony list

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