When testing or in scripts, you sometimes want to temporarily set an override which needs to be later removed. Without a clearing function, you need to instantiate a new app that doesn't have the overrides, or resort to hacks, like replacing / re-instantiating the Locator.
This PR adds two methods: app.clearSingletonOverrides and ctx.clearServiceOverrides which call Locator#clearOverrides in the corresponding Locator.
When testing or in scripts, you sometimes want to temporarily set an override which needs to be later removed. Without a clearing function, you need to instantiate a new app that doesn't have the overrides, or resort to hacks, like replacing / re-instantiating the Locator.
This PR adds two methods:
app.clearSingletonOverrides
andctx.clearServiceOverrides
which callLocator#clearOverrides
in the corresponding Locator.