Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class IoCContainer
import { IoCContainer } from "https://deno.land/x/fathym_ioc@v0.0.13/src/ioc/ioc.ts";

Constructors

new
IoCContainer()

Properties

services: IoCServices
symbols: Map<string, symbol>

Methods

CopyTo(ioc: IoCContainer): void
Register<T>(clazz: IoCServiceConstructor<T>, options?: IoCServiceOptions): void | (() => void)
Register<T>(instance: IoCServiceResolver<T>, options?: IoCServiceOptions): void | (() => void)
Register<T>(): void | (() => void)
RegisterDirect(
symbol: symbol,
name: string,
): void | (() => void)
Resolve<T>(ctor: IoCServiceConstructor<T>): Promise<T>
Resolve<T>(ctor: IoCServiceConstructor<T>, name: string): Promise<T>
Resolve<T>(symbol: symbol): Promise<T>
Resolve<T>(symbol: symbol, name: string): Promise<T>
ResolveDirect<T>(ctorSymbol: IoCServiceConstructor<T> | symbol, name?: string): IoCServiceResolutions
Symbol(id: string): symbol