News Feed
Sections




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

Paul Jones' Blog:
Dependency Injection in Solar
June 27, 2006 @ 06:29:50

In light of some of the current talk about dependency injection in PHP applications, Paul Jones has jumped on it and has posted on his blog about how his framework, Solar, already supports it.

Because it makes great use of dependecy injection, Solar has a standardized form of generating/retrieving dependency objects using its Solar::dependency() method.

The callilng code sends the dependency params to the target object at construction time. The target object then passes those params through Solar::dependency() to retrieve or create the dependency object.

Paul also briefly mentions that the parameters passed in can be: an object (including the dependency object itself), a string, or an array (treated internally as parameters to create a new object).

0 comments voice your opinion now!
dependency injection solar framework support dependency injection solar framework support


blog comments powered by Disqus

Similar Posts

PHPMaster.com: PHP Dependency Management with Composer

DevShed: Building a Content Management System with Code Igniter

Wolfgang Drews\' Blog: Some thoughts on indexes & searching in MySQL / PHP

Phish Tank: Install & Configure Apache+PHP+ZendFramework+OracleDbXe On Windows In Minutes

Davey Shafik's Blog: Sneak Peek: Zend_Service_Server - name and framework subject to change


Community Events





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


community testing code developer list language framework introduction unittest threedevsandamaybe interview series api install symfony2 opinion release laravel podcast refactor

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