Add invokeMethod to the injector service