Replace deprecated inject method with new one