From e669270bfbe65830d167874b4d1850079d37c9fb Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Fri, 27 May 2016 14:57:37 +0300 Subject: [PATCH] Update doc blocks for IoC containers in services example --- examples/miniapps/services/containers.py | 4 ++-- examples/miniapps/services/containers_alt_syntax_1.py | 4 ++-- examples/miniapps/services/containers_alt_syntax_2.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/miniapps/services/containers.py b/examples/miniapps/services/containers.py index 31391ee1..3b291d78 100644 --- a/examples/miniapps/services/containers.py +++ b/examples/miniapps/services/containers.py @@ -9,7 +9,7 @@ from dependency_injector import providers class Platform(containers.DeclarativeContainer): - """Container of platform service providers.""" + """IoC container of platform service providers.""" database = providers.Singleton(sqlite3.connect, ':memory:') @@ -19,7 +19,7 @@ class Platform(containers.DeclarativeContainer): class Services(containers.DeclarativeContainer): - """Container of business service providers.""" + """IoC container of business service providers.""" users = providers.Factory(example.services.Users, db=Platform.database) diff --git a/examples/miniapps/services/containers_alt_syntax_1.py b/examples/miniapps/services/containers_alt_syntax_1.py index 441a9785..2b925020 100644 --- a/examples/miniapps/services/containers_alt_syntax_1.py +++ b/examples/miniapps/services/containers_alt_syntax_1.py @@ -12,7 +12,7 @@ from dependency_injector import providers class Platform(containers.DeclarativeContainer): - """Container of platform service providers.""" + """IoC container of platform service providers.""" database = providers.Singleton(sqlite3.connect) \ .add_args(':memory:') @@ -23,7 +23,7 @@ class Platform(containers.DeclarativeContainer): class Services(containers.DeclarativeContainer): - """Container of business service providers.""" + """IoC container of business service providers.""" users = providers.Factory(example.services.Users) \ .add_kwargs(db=Platform.database) diff --git a/examples/miniapps/services/containers_alt_syntax_2.py b/examples/miniapps/services/containers_alt_syntax_2.py index 2e2d783b..9763ac26 100644 --- a/examples/miniapps/services/containers_alt_syntax_2.py +++ b/examples/miniapps/services/containers_alt_syntax_2.py @@ -12,7 +12,7 @@ from dependency_injector import providers class Platform(containers.DeclarativeContainer): - """Container of platform service providers.""" + """IoC container of platform service providers.""" database = providers.Singleton(sqlite3.connect) database.add_args(':memory:') @@ -23,7 +23,7 @@ class Platform(containers.DeclarativeContainer): class Services(containers.DeclarativeContainer): - """Container of business service providers.""" + """IoC container of business service providers.""" users = providers.Factory(example.services.Users) users.add_kwargs(db=Platform.database)