chore(injector): use class notation to refactor the injector