improve dependency injection doc
Merge pull request #1541 from craigh/docfix

improve dependency injection doc