resetAll static method

void resetAll()
  1. Hermetic Resets Wipes all DI scopes, root bindings, route ambient pools, persistence caches, and observers.

Implementation

static void resetAll() {
  GraftDI.reset();
  GraftRegistry.reset();
  GraftRouteTracker.reset();
  resetAmbientPersistence();
  Graft.observer = null;
}