# Dynamic dependency injection

This is a small PHP code that demonstrates injecting a dependency that is not known until runtime.

Reading the comments in the code will hopefully explain the idea clearly.

To try it / play with it:

`$ git clone https://github.com/pwm/dynamic-dependency-injection.git`

`$ composer install`

`$ app/console feed-reader json "http://foobar.com/feed"`
 
Open for any suggestions/improvements.


# Dynamic dependency injection

Sample PHP code that demonstrates injecting a dependency that is not known until runtime.

[Click here for explanation](http://pwm.github.io/dynamic-dependency-injection/)

To try it / play with it:

`$ git clone https://github.com/pwm/dynamic-dependency-injection.git`

`$ cd dynamic-dependency-injection`

`$ composer install`

`$ app/console feed-reader json "http://foobar.com/feed"`
 
Open for suggestions/improvements.


Update readme with explanation link
Update readme with explanation link
