Commit 8b1eceb6 authored by nanahira's avatar nanahira

remove provideKey

parent d14dab9a
......@@ -24,7 +24,6 @@ const getMethodDescriptor = (cls: AnyClass, key: PropertyKey) => {
type ProvideRecord = {
classRef: AnyClass;
factory: () => any;
provideKey?: string;
};
type LoadEntry = {
......@@ -71,9 +70,6 @@ export class AppContextCore<Cur = Empty, Req = Empty> {
) as ConstructorParameters<C>;
const classRef = cls as unknown as AnyClass;
const provideKey = options?.provide
? ProvidePrefix + String(options.provide)
: undefined;
// Create factory function that will be called during start()
const factory = () =>
......@@ -86,7 +82,6 @@ export class AppContextCore<Cur = Empty, Req = Empty> {
this.provideRecords.push({
classRef,
factory,
provideKey,
});
// Set up property accessors if needed
......@@ -233,9 +228,6 @@ export class AppContextCore<Cur = Empty, Req = Empty> {
inst,
};
this.registry.set(record.classRef, entry);
if (record.provideKey) {
this.registry.set(record.provideKey, entry);
}
this.loadSeq.push(entry);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment