sh_discord_bot/src/bot/startup.py

17 lines
657 B
Python
Raw Normal View History

2022-07-14 16:32:46 +02:00
from cpl_core.application import StartupABC
from cpl_core.configuration import ConfigurationABC
from cpl_core.dependency_injection import ServiceProviderABC, ServiceCollectionABC
from cpl_core.environment import ApplicationEnvironment
class Startup(StartupABC):
def __init__(self):
StartupABC.__init__(self)
2022-07-16 19:05:39 +02:00
def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:
2022-07-14 16:32:46 +02:00
return configuration
2022-07-16 19:05:39 +02:00
def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC:
2022-07-14 16:32:46 +02:00
return services.build_service_provider()