mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Update services example
This commit is contained in:
parent
96476ba9ca
commit
d5bd3bdfce
|
@ -351,10 +351,10 @@ Next example demonstrates run of example application defined above:
|
|||
|
||||
if __name__ == '__main__':
|
||||
# Configure platform:
|
||||
Core.config.update({'database': {'dsn': ':memory:'},
|
||||
'aws': {'access_key_id': 'KEY',
|
||||
'secret_access_key': 'SECRET'},
|
||||
'auth': {'token_ttl': 3600}})
|
||||
Core.config.override({'database': {'dsn': ':memory:'},
|
||||
'aws': {'access_key_id': 'KEY',
|
||||
'secret_access_key': 'SECRET'},
|
||||
'auth': {'token_ttl': 3600}})
|
||||
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
||||
|
||||
# Run application:
|
||||
|
|
|
@ -12,6 +12,7 @@ follows `Semantic versioning`_
|
|||
- Improve ``Configuration`` provider overriding logic.
|
||||
- Refactor ``Configuration`` provider.
|
||||
- Improve ``DependenciesContainer`` provider overriding logic.
|
||||
- Update "services" example miniapp.
|
||||
- Update "bundles" example miniapp.
|
||||
|
||||
3.10.0
|
||||
|
|
|
@ -8,10 +8,10 @@ from containers import Core, Application
|
|||
|
||||
if __name__ == '__main__':
|
||||
# Configure platform:
|
||||
Core.config.update({'database': {'dsn': ':memory:'},
|
||||
'aws': {'access_key_id': 'KEY',
|
||||
'secret_access_key': 'SECRET'},
|
||||
'auth': {'token_ttl': 3600}})
|
||||
Core.config.override({'database': {'dsn': ':memory:'},
|
||||
'aws': {'access_key_id': 'KEY',
|
||||
'secret_access_key': 'SECRET'},
|
||||
'auth': {'token_ttl': 3600}})
|
||||
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
||||
|
||||
# Run application:
|
||||
|
|
Loading…
Reference in New Issue
Block a user