dependency injection using the array notation

So we can compile the code.