mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Fix module API references in docs
This commit is contained in:
parent
e309425ee5
commit
baa1a86cfe
|
@ -7,7 +7,7 @@ Current section of documentation describes advanced usage of
|
|||
@inject decorator
|
||||
-----------------
|
||||
|
||||
.. module:: dependency_injector.injections
|
||||
.. currentmodule:: dependency_injector.injections
|
||||
|
||||
:py:func:`inject` decorator is a part of
|
||||
:py:mod:`dependency_injector.injections` module.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Catalog provider bundles
|
||||
------------------------
|
||||
|
||||
.. module:: dependency_injector.catalogs
|
||||
.. currentmodule:: dependency_injector.catalogs
|
||||
|
||||
:py:class:`CatalogBundle` is a frozen, limited collection of catalog
|
||||
providers. While catalog could be used as a centralized place for
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Declarative catalogs
|
||||
--------------------
|
||||
|
||||
.. module:: dependency_injector.catalogs
|
||||
.. currentmodule:: dependency_injector.catalogs
|
||||
|
||||
:py:class:`DeclarativeCatalog` is a catalog of providers that could be
|
||||
defined in declarative manner. It should cover most of the cases when list
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Dynamic catalogs
|
||||
----------------
|
||||
|
||||
.. module:: dependency_injector.catalogs
|
||||
.. currentmodule:: dependency_injector.catalogs
|
||||
|
||||
:py:class:`DynamicCatalog` is a catalog of providers that could be created in
|
||||
application's runtime. It should cover most of the cases when list of
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Overriding of catalogs
|
||||
----------------------
|
||||
|
||||
.. module:: dependency_injector.catalogs
|
||||
.. currentmodule:: dependency_injector.catalogs
|
||||
|
||||
Catalogs can be overridden by other catalogs. This, actually, means that
|
||||
all of the providers from overriding catalog will override providers with the
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Callable providers
|
||||
------------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
:py:class:`Callable` provider is a provider that wraps particular callable with
|
||||
some injections. Every call of this provider returns result of call of initial
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Writing of custom providers
|
||||
---------------------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
List of *Dependency Injector* providers could be widened with custom providers.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
External dependency providers
|
||||
-----------------------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
:py:class:`ExternalDependency` provider can be useful for development of
|
||||
self-sufficient libraries / modules / applications that has required external
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Factory providers
|
||||
-----------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
:py:class:`Factory` provider creates new instance of specified class on every
|
||||
call.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Overriding of providers
|
||||
-----------------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
Every provider could be overridden by another provider.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Singleton providers
|
||||
-------------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
:py:class:`Singleton` provider creates new instance of specified class on
|
||||
first call and returns same instance on every next call.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Static providers
|
||||
----------------
|
||||
|
||||
.. module:: dependency_injector.providers
|
||||
.. currentmodule:: dependency_injector.providers
|
||||
|
||||
Static providers are family of providers that return their values "as is".
|
||||
There are four types of static providers:
|
||||
|
|
Loading…
Reference in New Issue
Block a user