dependency injection using the array notation