use configure method instead of deprecated inject method.
Merge pull request #2 from bangpound/configure-not-inject

use configure method instead of deprecated inject method.