Expose a register function that gets an object arg with all the configuration. This should not deprecate the current register method with args.