Some checks failed
Test before pr merge / test-lint (pull_request) Failing after 6s
Build on push / prepare (push) Successful in 9s
Build on push / core (push) Successful in 19s
Build on push / query (push) Successful in 27s
Build on push / dependency (push) Successful in 18s
Build on push / application (push) Successful in 15s
Build on push / database (push) Successful in 20s
Build on push / translation (push) Successful in 19s
Build on push / mail (push) Successful in 20s
Build on push / auth (push) Successful in 14s
Build on push / api (push) Successful in 14s
28 lines
828 B
Python
28 lines
828 B
Python
from cpl.application.abc import StartupABC
|
|
from cpl.dependency import ServiceProvider, ServiceCollection
|
|
from di_tester_service import DITesterService
|
|
from test1_service import Test1Service
|
|
from test2_service import Test2Service
|
|
from test_abc import TestABC
|
|
from test_service import TestService
|
|
from tester import Tester
|
|
|
|
|
|
class Startup(StartupABC):
|
|
def __init__(self):
|
|
StartupABC.__init__(self)
|
|
|
|
@staticmethod
|
|
def configure_configuration(): ...
|
|
|
|
@staticmethod
|
|
def configure_services(services: ServiceCollection) -> ServiceProvider:
|
|
services.add_scoped(TestService)
|
|
services.add_scoped(DITesterService)
|
|
|
|
services.add_singleton(TestABC, Test1Service)
|
|
services.add_singleton(TestABC, Test2Service)
|
|
services.add_singleton(Tester)
|
|
|
|
return services.build()
|