Add a method to get the injector after initialize.