• Injects a dependency using the given key and returns an instance of the dependency.

    Type Parameters

    • T = object

      The type of the dependency being injected.

    Parameters

    • key: Key

      The key used to locate the dependency.

    • Optionalverbose: boolean = true

      A flag indicating whether verbose logging should be enabled (default is true).

    Returns T

    • An instance of the dependency.