mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 04:13:13 +03:00
Update docs
This commit is contained in:
parent
61f53d9974
commit
eb6cd303de
|
@ -24,7 +24,7 @@ There are 3 main entities: providers, injections and catalogs.
|
||||||
Providers
|
Providers
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
Providers are strategies of accesing objects. For example,
|
Providers are strategies of accessing objects. For example,
|
||||||
:py:class:`dependency_injector.providers.Factory` creates new instance
|
:py:class:`dependency_injector.providers.Factory` creates new instance
|
||||||
of provided class every time it is called.
|
of provided class every time it is called.
|
||||||
:py:class:`dependency_injector.providers.Singleton` creates provided
|
:py:class:`dependency_injector.providers.Singleton` creates provided
|
||||||
|
|
|
@ -6,9 +6,7 @@ What is dependency injection and inversion of control?
|
||||||
:description: This article provides definition of dependency injection,
|
:description: This article provides definition of dependency injection,
|
||||||
inversion of control and dependency inversion. It contains
|
inversion of control and dependency inversion. It contains
|
||||||
example code in Python that is refactored to be following
|
example code in Python that is refactored to be following
|
||||||
inversion of control principle and then enhanced by
|
inversion of control principle.
|
||||||
inversion of control container based on "Dependency Injector"
|
|
||||||
declarative catalog.
|
|
||||||
|
|
||||||
Definition
|
Definition
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
Loading…
Reference in New Issue
Block a user