mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-12 09:30:46 +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:
|
Nothing could be better than brief example:
|
||||||
|
|
||||||
.. image:: /images/factory.png
|
.. image:: /images/factory.png
|
||||||
|
:width: 80%
|
||||||
|
:align: center
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ and returns same instance on every next call.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. image:: /images/singleton.png
|
.. image:: /images/singleton.png
|
||||||
|
:width: 80%
|
||||||
|
:align: center
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
@ -42,6 +44,8 @@ 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
|
.. image:: /images/singleton_internals.png
|
||||||
|
:width: 80%
|
||||||
|
:align: center
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user