inject dependency with array(by yangchen)