diff --git a/docs/providers/index.rst b/docs/providers/index.rst index bd5a4745..6e26779a 100644 --- a/docs/providers/index.rst +++ b/docs/providers/index.rst @@ -26,7 +26,7 @@ It causes the cascade effect that helps to assemble object graphs. Another providers feature is an overriding. Any of the providers can be overridden by another provider. When provider is overridden it calls to the overriding provider instead of providing the object by its own. This helps in testing. This also helps in overriding API clients with -stubs for the development or staging environment. +stubs for the development or staging environment. See the example at :ref:`provider-overriding`. Providers module API docs - :py:mod:`dependency_injector.providers` diff --git a/docs/providers/overriding.rst b/docs/providers/overriding.rst index f8a9d7ab..a8c4b006 100644 --- a/docs/providers/overriding.rst +++ b/docs/providers/overriding.rst @@ -1,3 +1,5 @@ +.. _provider-overriding: + Provider overriding ===================