mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 17:47:02 +03:00
1ad852d193
* Update index page * Update providers index page * Make a little wording fix on containers index page * Refactor factory provider docs header * Update factory injection docs * Update factory init injections example and picture * Start work on underlying providers * Finish the docs for factory arguments to the underlying providers * Edit providers delegation section * Edit section about specialized factory provider * Edit abstract factory section * Edit FactoryAggregate docs * Add meta keywords and description
24 lines
645 B
ReStructuredText
24 lines
645 B
ReStructuredText
Containers
|
|
==========
|
|
|
|
Containers are collections of the providers.
|
|
|
|
There are several use cases how you can use containers:
|
|
|
|
+ Keeping all the providers in a single container (most common).
|
|
+ Grouping of the providers from the same architectural layer (for example,
|
|
``Services``, ``Models`` and ``Forms`` containers).
|
|
+ Grouping of providers from the same functional groups (for example,
|
|
container ``Users``, that contains all functional parts of the ``users``
|
|
package).
|
|
|
|
Containers module API docs - :py:mod:`dependency_injector.containers`.
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
declarative
|
|
dynamic
|
|
specialization
|
|
overriding
|