Updated the registerRequiredInjection