mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Adding better scalling for some factory and singleton documentation images
This commit is contained in:
parent
c56cb70a24
commit
db09503426
|
@ -6,6 +6,8 @@ Factory providers
|
|||
Nothing could be better than brief example:
|
||||
|
||||
.. image:: /images/factory.png
|
||||
:width: 80%
|
||||
:align: center
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ and returns same instance on every next call.
|
|||
Example:
|
||||
|
||||
.. image:: /images/singleton.png
|
||||
:width: 80%
|
||||
:align: center
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
@ -42,6 +44,8 @@ specified class instance, so, all of the rules about injections are the same,
|
|||
as for ``Factory`` providers.
|
||||
|
||||
.. image:: /images/singleton_internals.png
|
||||
:width: 80%
|
||||
:align: center
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user