Adding images for singleton docs

This commit is contained in:
Roman Mogilatov 2015-06-24 12:29:58 +03:00
parent c05879bada
commit c56cb70a24
3 changed files with 6 additions and 0 deletions

BIN
docs/images/singleton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -4,6 +4,10 @@ Singleton providers
``Singleton`` provider creates new instance of specified class on first call ``Singleton`` provider creates new instance of specified class on first call
and returns same instance on every next call. and returns same instance on every next call.
Example:
.. image:: /images/singleton.png
.. code-block:: python .. code-block:: python
"""`Singleton` providers example.""" """`Singleton` providers example."""
@ -37,6 +41,8 @@ Singleton providers and injections
specified class instance, so, all of the rules about injections are the same, specified class instance, so, all of the rules about injections are the same,
as for ``Factory`` providers. as for ``Factory`` providers.
.. image:: /images/singleton_internals.png
.. note:: .. note::
Due that ``Singleton`` provider creates specified class instance only on Due that ``Singleton`` provider creates specified class instance only on