From 7c1d8d52251405effdc8c35e97350d8067acff2c Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 27 Oct 2021 17:01:04 -0400 Subject: [PATCH] Update application-multiple-containers example --- .../application-multiple-containers/example/__main__.py | 1 - .../application-multiple-containers/example/containers.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/miniapps/application-multiple-containers/example/__main__.py b/examples/miniapps/application-multiple-containers/example/__main__.py index adf91ae8..d28eecdc 100644 --- a/examples/miniapps/application-multiple-containers/example/__main__.py +++ b/examples/miniapps/application-multiple-containers/example/__main__.py @@ -24,7 +24,6 @@ def main( if __name__ == "__main__": application = Application() - application.config.from_yaml("config.yml") application.core.init_resources() application.wire(modules=[__name__]) diff --git a/examples/miniapps/application-multiple-containers/example/containers.py b/examples/miniapps/application-multiple-containers/example/containers.py index 5049df4a..a29d955a 100644 --- a/examples/miniapps/application-multiple-containers/example/containers.py +++ b/examples/miniapps/application-multiple-containers/example/containers.py @@ -61,7 +61,7 @@ class Services(containers.DeclarativeContainer): class Application(containers.DeclarativeContainer): - config = providers.Configuration() + config = providers.Configuration(yaml_files=["config.yml"]) core = providers.Container( Core,