This commit is contained in:
Ngo Thanh Loi (Leonn) 2021-05-21 04:58:15 +07:00 committed by GitHub
parent 64574dff4d
commit c2a1351612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ Dependency injection and inversion of control in Python
Dependency Injector, its container, Factory, Singleton and Configuration Dependency Injector, its container, Factory, Singleton and Configuration
providers. The example show how to use Dependency Injector providers overriding providers. The example show how to use Dependency Injector providers overriding
feature for testing or configuring project in different environments and explains feature for testing or configuring project in different environments and explains
why it's better then monkey-patching. why it's better than monkey-patching.
Originally dependency injection pattern got popular in the languages with a static typing, Originally dependency injection pattern got popular in the languages with a static typing,
like Java. Dependency injection is a principle that helps to achieve an inversion of control. like Java. Dependency injection is a principle that helps to achieve an inversion of control.
@ -29,7 +29,7 @@ contains Python examples that show how to implement dependency injection. It dem
of the dependency injection framework ``Dependency Injector``, its container, ``Factory``, of the dependency injection framework ``Dependency Injector``, its container, ``Factory``,
``Singleton`` and ``Configuration`` providers. The example shows how to use ``Dependency Injector`` ``Singleton`` and ``Configuration`` providers. The example shows how to use ``Dependency Injector``
providers overriding feature for testing or configuring project in different environments and providers overriding feature for testing or configuring project in different environments and
explains why it's better then monkey-patching. explains why it's better than monkey-patching.
What is dependency injection? What is dependency injection?
----------------------------- -----------------------------