diff --git a/examples/miniapps/bundles/bundles/photos/__init__.py b/examples/miniapps/bundles/bundles/photos/__init__.py index 5c9e0c50..228e054a 100644 --- a/examples/miniapps/bundles/bundles/photos/__init__.py +++ b/examples/miniapps/bundles/bundles/photos/__init__.py @@ -1,7 +1,7 @@ """Photos bundle.""" from core import containers -from core import providers +from dependency_injector import providers from . import entities from . import repositories diff --git a/examples/miniapps/bundles/bundles/users/__init__.py b/examples/miniapps/bundles/bundles/users/__init__.py index ebd57c33..93eee1a3 100644 --- a/examples/miniapps/bundles/bundles/users/__init__.py +++ b/examples/miniapps/bundles/bundles/users/__init__.py @@ -1,7 +1,7 @@ """Users bundle.""" from core import containers -from core import providers +from dependency_injector import providers from . import entities from . import repositories diff --git a/examples/miniapps/bundles/core/containers.py b/examples/miniapps/bundles/core/containers.py index 79dc98ae..f99fbfdb 100644 --- a/examples/miniapps/bundles/core/containers.py +++ b/examples/miniapps/bundles/core/containers.py @@ -2,9 +2,7 @@ import six -from dependency_injector import containers - -from core import providers +from dependency_injector import containers, providers class DeclarativeContainer(containers.DeclarativeContainer): diff --git a/examples/miniapps/bundles/core/providers.py b/examples/miniapps/bundles/core/providers.py deleted file mode 100644 index 1010b04a..00000000 --- a/examples/miniapps/bundles/core/providers.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Providers module.""" - -from dependency_injector import providers - - -Factory = providers.Factory -Singleton = providers.Singleton - - -deepcopy = providers.deepcopy - - -class Dependency(providers.ExternalDependency): - """Dependency provider.""" - - def __init__(self, type=object): - """Initializer.""" - super(Dependency, self).__init__(type) diff --git a/examples/miniapps/bundles/run.py b/examples/miniapps/bundles/run.py index dafb8db0..d77061e9 100644 --- a/examples/miniapps/bundles/run.py +++ b/examples/miniapps/bundles/run.py @@ -1,6 +1,7 @@ """Example application - Bundles.""" -from core import containers, providers +from core import containers +from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos