mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Adding images for singleton docs
This commit is contained in:
parent
c05879bada
commit
c56cb70a24
BIN
docs/images/singleton.png
Normal file
BIN
docs/images/singleton.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
BIN
docs/images/singleton_internals.png
Normal file
BIN
docs/images/singleton_internals.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -4,6 +4,10 @@ Singleton providers
|
|||
``Singleton`` provider creates new instance of specified class on first call
|
||||
and returns same instance on every next call.
|
||||
|
||||
Example:
|
||||
|
||||
.. image:: /images/singleton.png
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
"""`Singleton` providers example."""
|
||||
|
@ -37,6 +41,8 @@ Singleton providers and injections
|
|||
specified class instance, so, all of the rules about injections are the same,
|
||||
as for ``Factory`` providers.
|
||||
|
||||
.. image:: /images/singleton_internals.png
|
||||
|
||||
.. note::
|
||||
|
||||
Due that ``Singleton`` provider creates specified class instance only on
|
||||
|
|
Loading…
Reference in New Issue
Block a user