From 3429dfd1b9543b88ea39e51093d17ec4e891a44c Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 11 Jan 2021 08:10:42 -0500 Subject: [PATCH] Update docs --- docs/wiring.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/wiring.rst b/docs/wiring.rst index 79314b64..d4f62587 100644 --- a/docs/wiring.rst +++ b/docs/wiring.rst @@ -77,6 +77,13 @@ You can use configuration, provided instance and sub-container providers as you You can compound wiring and ``Resource`` provider to implement per-function execution scope. See :ref:`Resources, wiring and per-function execution scope ` for details. +Also you can use ``Provide`` marker to inject a container. + +.. literalinclude:: ../examples/wiring/example_container.py + :language: python + :emphasize-lines: 16-19 + :lines: 3- + Wiring with modules and packages --------------------------------