mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
This commit is contained in:
parent
cef6d35cfd
commit
ff5b81fecb
|
@ -17,7 +17,7 @@ class Container(containers.DeclarativeContainer):
|
||||||
client = providers.Factory(Client)
|
client = providers.Factory(Client)
|
||||||
|
|
||||||
service = providers.Factory(Service)
|
service = providers.Factory(Service)
|
||||||
service.add_attributes(clent=client)
|
service.add_attributes(client=client)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user