mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 06:30:51 +03:00
Fix a few typos
This commit is contained in:
parent
5740dd6df5
commit
505ccf5a1d
|
@ -143,7 +143,7 @@ Here comes the ``Dependency Injector``.
|
||||||
What does the Dependency Injector do?
|
What does the Dependency Injector do?
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
With the dependency injection pattern objects lose the responsibility of assembling the
|
With the dependency injection pattern objects loose the responsibility of assembling the
|
||||||
dependencies. The ``Dependency Injector`` absorbs that responsibility.
|
dependencies. The ``Dependency Injector`` absorbs that responsibility.
|
||||||
|
|
||||||
``Dependency Injector`` helps to assemble the objects.
|
``Dependency Injector`` helps to assemble the objects.
|
||||||
|
|
|
@ -123,7 +123,7 @@ Here comes the ``Dependency Injector``.
|
||||||
What does the Dependency Injector do?
|
What does the Dependency Injector do?
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
With the dependency injection pattern objects lose the responsibility of assembling the
|
With the dependency injection pattern objects loose the responsibility of assembling the
|
||||||
dependencies. The ``Dependency Injector`` absorbs that responsibility.
|
dependencies. The ``Dependency Injector`` absorbs that responsibility.
|
||||||
|
|
||||||
``Dependency Injector`` helps to assemble the objects.
|
``Dependency Injector`` helps to assemble the objects.
|
||||||
|
@ -178,7 +178,7 @@ client with a mock:
|
||||||
with container.api_client.override(mock.Mock()):
|
with container.api_client.override(mock.Mock()):
|
||||||
service = container.service()
|
service = container.service()
|
||||||
|
|
||||||
You can override any provider by another provider.
|
You can override any provider with another provider.
|
||||||
|
|
||||||
It also helps you in configuring project for the different environments: replace an API client
|
It also helps you in configuring project for the different environments: replace an API client
|
||||||
with a stub on the dev or stage.
|
with a stub on the dev or stage.
|
||||||
|
|
|
@ -24,7 +24,7 @@ It causes the cascade effect that helps to assemble object graphs. See ``Factory
|
||||||
│
|
│
|
||||||
└──> provider6()
|
└──> provider6()
|
||||||
|
|
||||||
Another providers feature is an overriding. You can override any provider by another provider.
|
Another providers feature is an overriding. You can override any provider with another provider.
|
||||||
This helps in testing. This also helps in overriding API clients with stubs for the development
|
This helps in testing. This also helps in overriding API clients with stubs for the development
|
||||||
or staging environment. See the example at :ref:`provider-overriding`.
|
or staging environment. See the example at :ref:`provider-overriding`.
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ Provider overriding
|
||||||
|
|
||||||
.. currentmodule:: dependency_injector.providers
|
.. currentmodule:: dependency_injector.providers
|
||||||
|
|
||||||
You can override any provider by another provider.
|
You can override any provider with another provider.
|
||||||
|
|
||||||
When provider is overridden it calls to the overriding provider instead of providing
|
When provider is overridden it calls to the overriding provider instead of providing
|
||||||
the object by its own.
|
the object by its own.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user