mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
Update application-multiple-containers example
This commit is contained in:
parent
273cd7cc84
commit
7c1d8d5225
|
@ -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__])
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user