python-dependency-injector/docs/catalogs/index.rst

26 lines
705 B
ReStructuredText
Raw Normal View History

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