diff --git a/README.rst b/README.rst index 6537ae48..fd9335c2 100644 --- a/README.rst +++ b/README.rst @@ -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: diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index ab4c0925..816d279c 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -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 diff --git a/examples/miniapps/services/run.py b/examples/miniapps/services/run.py index 93ce99d1..da4f94b8 100644 --- a/examples/miniapps/services/run.py +++ b/examples/miniapps/services/run.py @@ -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: