node_test
    Preparing search index...

    Class DependencyInjectionContainer

    DependencyInjectionContainer

    A container for managing dependencies.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • srcPath: string

        The path to the directory to load dependencies from.

      Returns void

      load

      Loads all dependencies from a directory.

    • Type Parameters

      • T

      Parameters

      • token: Token<T>

        The token to register the dependency with.

      • instance: T

        The instance of the dependency.

      Returns void

      register

      Registers a dependency with the container.

    • Type Parameters

      • T

      Parameters

      • token: Token<T>

        The token of the dependency to resolve.

      Returns T

      The resolved dependency.

      resolve

      Resolves a dependency from the container.