From 3eb7b9bc692ba82d018197545293ec2e4e46ea8b Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 2 Sep 2020 17:25:20 -0400 Subject: [PATCH] Add reference to provider overriding page --- docs/providers/index.rst | 2 +- docs/providers/overriding.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 ===================