in src/Bootstrapper.js [126:147]
setContainer(container, cb = null) {
if (this.__container__ !== null) {
Logger.error('RHW02', 'A container is already set. ' +
'Please call dispose() before assigning a new one.');
return;
}
if (!container.factory ||
typeof container.factory.inject !== 'function' ||
typeof container.factory.dispose !== 'function') {
Logger.error('RHE10', 'Incompatible factory');
return;
}
// Set the container
this.__container__ = container;
// Wire up the components from the container
this.update(null, () => {
_callback(cb, this);
});
}