feat: add ServerChecker

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-07-06 16:07:16 +08:00
parent fe1ee3883a
commit 3ea72f0aac
2 changed files with 19 additions and 1 deletions

View File

@ -97,6 +97,7 @@ function initialize() {
let type = detectServer()
console.i18n("ms.core.initialize.detect", { scope: global.scope, type })
container.bind(server.ServerType).toConstantValue(type)
container.bind(server.ServerChecker).toSelf().inSingletonScope()
console.i18n("ms.core.package.initialize", { scope: global.scope, type })
require(`${global.scope}/${type}`).default(container)
require(`${global.scope}/plugin`)