fixed an injection issue

could not inject cli or config params
if inject by name was turned off
Merge pull request #53 from metridoc/fix-injection-issue

fix injection issue