Some checks failed
Test before pr merge / test-lint (pull_request) Failing after 7s
Build on push / prepare (push) Successful in 10s
Build on push / core (push) Successful in 18s
Build on push / query (push) Successful in 17s
Build on push / dependency (push) Successful in 17s
Build on push / application (push) Successful in 16s
Build on push / mail (push) Successful in 15s
Build on push / database (push) Successful in 15s
Build on push / translation (push) Successful in 18s
Build on push / auth (push) Successful in 23s
Build on push / api (push) Successful in 16s
18 lines
665 B
Python
18 lines
665 B
Python
from cpl.application import StartupABC
|
|
from cpl.core.configuration import ConfigurationABC
|
|
from cpl.dependency import ServiceProvider, ServiceCollection
|
|
from cpl.core.environment import Environment
|
|
|
|
|
|
class Startup(StartupABC):
|
|
def __init__(self):
|
|
StartupABC.__init__(self)
|
|
|
|
def configure_configuration(self, configuration: ConfigurationABC, environment: Environment) -> ConfigurationABC:
|
|
configuration.add_json_file("appsettings.json")
|
|
return configuration
|
|
|
|
def configure_services(self, services: ServiceCollection, environment: Environment) -> ServiceProvider:
|
|
services.add_translation()
|
|
return services.build()
|