Fake Mirrors
    Preparing search index...

    Interface CompositionRoot

    Application composition root used by the runtime bootstrap.

    This contract defines the methods needed to assemble the DI container and manage the runtime lifecycle.

    The composition root is intentionally small. It exists to keep runtime startup, infrastructure registration, and graceful shutdown in a single, explicit dependency contract.

    interface CompositionRoot {
        infra: DIComposer;
        main: DIComposer;
        start: DIComposerAsync;
        stop: DIComposerAsync;
    }
    infra: DIComposer

    Registers all infrastructure and runtime dependencies in the DI container.

    Shared dependency injection container.

    Registers all application controllers and services.

    Starts the application after the full dependency graph has been created.

    Shared dependency injection container.

    Stops the application gracefully and releases runtime dependencies.

    Shared dependency injection container.