Pass configuration to objects with DI