diff --git a/content/docs/concepts/dependency_injection.md b/content/docs/concepts/dependency_injection.md index 80140d10..e3413ad6 100644 --- a/content/docs/concepts/dependency_injection.md +++ b/content/docs/concepts/dependency_injection.md @@ -473,8 +473,11 @@ Once a swap has been defined, the container will use it instead of the actual cl ```ts app.container.restore(UserService) +// Restore UserService and PostService +app.container.restoreAll([UserService, PostService]) + // Restore all -app.container.restore() +app.container.restoreAll() ``` ## Contextual dependencies diff --git a/content/docs/testing/mocks_and_fakes.md b/content/docs/testing/mocks_and_fakes.md index d9fc4147..43a6e485 100644 --- a/content/docs/testing/mocks_and_fakes.md +++ b/content/docs/testing/mocks_and_fakes.md @@ -69,8 +69,11 @@ Once the test has been completed, you must restore the fake using the `container ```ts app.container.restore(UserService) +// Restore UserService and PostService +app.container.restoreAll([UserService, PostService]) + // Restore all -app.container.restore() +app.container.restoreAll() ``` ## Mocks and stubs using Sinon.js