mirror of
https://github.com/sern-handler/handler
synced 2026-06-28 02:32:15 +00:00
Remove module store, manager, and Intializable type
This commit is contained in:
@@ -2,7 +2,7 @@ import { Container } from 'iti';
|
||||
import { Disposable } from '../';
|
||||
import * as assert from 'node:assert';
|
||||
import { Subject } from 'rxjs';
|
||||
import { __Services, ModuleStore } from '../_internal';
|
||||
import { __Services } from '../_internal';
|
||||
import * as Hooks from './hooks';
|
||||
import { EventEmitter } from 'node:events';
|
||||
|
||||
@@ -24,11 +24,7 @@ export class CoreContainer<T extends Partial<Dependencies>> extends Container<T,
|
||||
|
||||
(this as Container<{}, {}>)
|
||||
.add({ '@sern/errors': () => new __Services.DefaultErrorHandling,
|
||||
'@sern/emitter': () => new EventEmitter({ captureRejections: true }),
|
||||
'@sern/store': () => new ModuleStore })
|
||||
.add(ctx => {
|
||||
return { '@sern/modules': new __Services.DefaultModuleManager(ctx['@sern/store'])};
|
||||
});
|
||||
'@sern/emitter': () => new EventEmitter({ captureRejections: true }) })
|
||||
}
|
||||
|
||||
isReady() {
|
||||
|
||||
Reference in New Issue
Block a user