Avoid double registers
This commit is contained in:
@@ -152,13 +152,6 @@ function registerServices(pluginDetails, container) {
|
||||
[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