in packages/rum-core/src/common/service-factory.js [80:93]
getService(name) {
if (typeof name === 'string') {
if (!this.instances[name]) {
if (typeof serviceCreators[name] === 'function') {
this.instances[name] = serviceCreators[name](this)
} else if (__DEV__) {
console.log('Cannot get service, No creator for: ' + name)
}
}
return this.instances[name]
} else if (Array.isArray(name)) {
return name.map(n => this.getService(n))
}
}