Avoid double registers

This commit is contained in:
Sebastian Rindom
2020-07-02 07:16:17 +02:00
parent 602cd2f914
commit 04d2d707e9

View File

@@ -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)),
})
})
}