Update application-multiple-containers example

This commit is contained in:
Roman Mogylatov 2021-10-27 17:01:04 -04:00
parent 273cd7cc84
commit 7c1d8d5225
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ def main(
if __name__ == "__main__": if __name__ == "__main__":
application = Application() application = Application()
application.config.from_yaml("config.yml")
application.core.init_resources() application.core.init_resources()
application.wire(modules=[__name__]) application.wire(modules=[__name__])

View File

@ -61,7 +61,7 @@ class Services(containers.DeclarativeContainer):
class Application(containers.DeclarativeContainer): class Application(containers.DeclarativeContainer):
config = providers.Configuration() config = providers.Configuration(yaml_files=["config.yml"])
core = providers.Container( core = providers.Container(
Core, Core,