Skip to content

ServiceCollection

Collection of service descriptors provided during configuration.

build_service_provider() -> ServiceProvider

Create a :class:ServiceProvider containing services from the provided :class:ServiceCollection.

configure_fastapi(app: FastAPI) -> None

Configure the FastAPI application to use dependency injection using the services from this service collection.