mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 19:14:00 +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__':
|
if __name__ == '__main__':
|
||||||
# Configure platform:
|
# Configure platform:
|
||||||
Core.config.update({'database': {'dsn': ':memory:'},
|
Core.config.override({'database': {'dsn': ':memory:'},
|
||||||
'aws': {'access_key_id': 'KEY',
|
'aws': {'access_key_id': 'KEY',
|
||||||
'secret_access_key': 'SECRET'},
|
'secret_access_key': 'SECRET'},
|
||||||
'auth': {'token_ttl': 3600}})
|
'auth': {'token_ttl': 3600}})
|
||||||
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
||||||
|
|
||||||
# Run application:
|
# Run application:
|
||||||
|
|
|
@ -12,6 +12,7 @@ follows `Semantic versioning`_
|
||||||
- Improve ``Configuration`` provider overriding logic.
|
- Improve ``Configuration`` provider overriding logic.
|
||||||
- Refactor ``Configuration`` provider.
|
- Refactor ``Configuration`` provider.
|
||||||
- Improve ``DependenciesContainer`` provider overriding logic.
|
- Improve ``DependenciesContainer`` provider overriding logic.
|
||||||
|
- Update "services" example miniapp.
|
||||||
- Update "bundles" example miniapp.
|
- Update "bundles" example miniapp.
|
||||||
|
|
||||||
3.10.0
|
3.10.0
|
||||||
|
|
|
@ -8,10 +8,10 @@ from containers import Core, Application
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Configure platform:
|
# Configure platform:
|
||||||
Core.config.update({'database': {'dsn': ':memory:'},
|
Core.config.override({'database': {'dsn': ':memory:'},
|
||||||
'aws': {'access_key_id': 'KEY',
|
'aws': {'access_key_id': 'KEY',
|
||||||
'secret_access_key': 'SECRET'},
|
'secret_access_key': 'SECRET'},
|
||||||
'auth': {'token_ttl': 3600}})
|
'auth': {'token_ttl': 3600}})
|
||||||
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
Core.logger().addHandler(logging.StreamHandler(sys.stdout))
|
||||||
|
|
||||||
# Run application:
|
# Run application:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user