2015-05-08 18:44:44 +03:00
|
|
|
Catalogs
|
|
|
|
========
|
2015-07-28 09:46:35 +03:00
|
|
|
|
2015-08-04 17:05:34 +03:00
|
|
|
Catalogs are collections of providers. Main purpose of catalogs is to group
|
|
|
|
providers.
|
|
|
|
|
2015-09-02 12:23:18 +03:00
|
|
|
There are, actually, several popular cases of catalogs usage:
|
2015-08-04 17:05:34 +03:00
|
|
|
|
2015-09-02 12:23:18 +03:00
|
|
|
- Grouping of providers from the same architectural layer (for example,
|
2015-08-04 17:05:34 +03:00
|
|
|
``Services``, ``Models`` and ``Forms`` catalogs).
|
2015-09-02 12:23:18 +03:00
|
|
|
- Grouping of providers from the same functional groups (for example,
|
2015-08-04 17:05:34 +03:00
|
|
|
catalog ``Users``, that contains all functional parts of ``Users``
|
|
|
|
component).
|
|
|
|
|
2015-09-02 12:23:18 +03:00
|
|
|
Also, for both of these and some other cases, it might be useful to attach
|
2015-08-05 16:44:00 +03:00
|
|
|
some init / shutdown functionality or something else, that deals with group
|
|
|
|
of providers.
|
|
|
|
|
2015-11-22 00:59:36 +03:00
|
|
|
Catalogs module API docs - :py:mod:`dependency_injector.catalogs`.
|
|
|
|
|
2015-10-11 15:34:21 +03:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
2015-07-28 09:46:35 +03:00
|
|
|
|
2015-11-13 19:58:29 +03:00
|
|
|
declarative
|
|
|
|
dynamic
|
2015-10-17 00:42:22 +03:00
|
|
|
bundles
|
2015-12-15 17:49:07 +03:00
|
|
|
specialization
|
2015-10-11 15:34:21 +03:00
|
|
|
overriding
|