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,