2021-08-05 14:21:42 +02:00
|
|
|
from cpl_core.configuration import Configuration, ConfigurationABC
|
|
|
|
from cpl_core.console import Console
|
|
|
|
from cpl_core.dependency_injection import ServiceCollection, ServiceProviderABC
|
2021-05-22 12:53:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
def configure_configuration() -> ConfigurationABC:
|
|
|
|
config = Configuration()
|
|
|
|
return config
|
|
|
|
|
|
|
|
|
|
|
|
def configure_services(config: ConfigurationABC) -> ServiceProviderABC:
|
|
|
|
services = ServiceCollection(config)
|
|
|
|
return services.build_service_provider()
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
config = configure_configuration()
|
|
|
|
provider = configure_services(config)
|
2023-02-20 15:55:20 +01:00
|
|
|
Console.write_line("Hello World")
|
2021-05-22 12:53:04 +02:00
|
|
|
|
|
|
|
|
2023-02-20 15:55:20 +01:00
|
|
|
if __name__ == "__main__":
|
2021-05-22 12:53:04 +02:00
|
|
|
main()
|