diff --git a/src/core/structures/container.ts b/src/core/structures/container.ts index 6f20596..45fbf04 100644 --- a/src/core/structures/container.ts +++ b/src/core/structures/container.ts @@ -4,6 +4,7 @@ import { isAsyncFunction} from "node:util/types"; import * as assert from 'node:assert' import { Subject } from "rxjs"; import { ModuleStore } from "./module-store"; +import { Dependencies } from "../ioc/types"; /** * Provides all the defaults for sern to function properly. @@ -27,9 +28,9 @@ export class CoreContainer> extends Container this.callInitHooks(e)); - const unsubscriber = this.on('containerUpserted', this.callInitHooks); this.ready$.subscribe({ complete: unsubscriber }); @@ -39,15 +40,15 @@ export class CoreContainer> extends Container new Date(); diff --git a/src/core/structures/services/module-manager.ts b/src/core/structures/services/module-manager.ts index 19550ad..b7af14a 100644 --- a/src/core/structures/services/module-manager.ts +++ b/src/core/structures/services/module-manager.ts @@ -1,14 +1,14 @@ -import { ModuleManager } from "../../contracts"; +import { CoreModuleStore, ModuleManager } from "../../contracts"; import { importModule } from "../../module-loading"; import { CommandModule } from "../../types/modules"; -import { ModuleStore } from "../module-store"; /** * @internal -* @since 2.0.0 +* @since 2.0.0/* +* Version 4.0.0 will internalize this api. Please refrain from using ModuleStore! */ export class DefaultModuleManager implements ModuleManager { - constructor(private moduleStore: ModuleStore) {} + constructor(private moduleStore: CoreModuleStore) {} remove(id: string): boolean { throw new Error('Method not implemented.');