Avoid double registers
This commit is contained in:
1 parent
602cd2f914
commit
04d2d707e9
1 file changed
-7
@@ -152,13 +152,6 @@ function registerServices(pluginDetails, container) {
|
|||||||
[name]: asFunction(cradle => new loaded(cradle, pluginDetails.options)),
|
[name]: asFunction(cradle => new loaded(cradle, pluginDetails.options)),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always register the service with a nice name, if we need to import it
|
|
||||||
// from somewhere
|
|
||||||
const name = formatRegistrationName(fn)
|
|
||||||
container.register({
|
|
||||||
[name]: asFunction(cradle => new loaded(cradle, pluginDetails.options)),
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user