template适配框架对context注入的改动
This commit is contained in:
parent
576d2fef28
commit
9b6358b0cf
|
|
@ -10,6 +10,5 @@ const dropIfExists = process.argv[2];
|
|||
|
||||
initialize(
|
||||
pwd,
|
||||
BackendRuntimeContext.FromSerializedString,
|
||||
!!dropIfExists
|
||||
).then(() => process.exit(0));
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ const pwd = process.cwd();
|
|||
|
||||
const connector = new SimpleConnector(
|
||||
'',
|
||||
makeException,
|
||||
BackendRuntimeContext.FromSerializedString
|
||||
makeException
|
||||
);
|
||||
startup(pwd, BackendRuntimeContext.FromSerializedString, connector);
|
||||
startup(pwd, connector);
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ export default function initialize(type: AppType, hostname: string) {
|
|||
type,
|
||||
hostname,
|
||||
storageSchema,
|
||||
() => (store) => new FrontendRuntimeContext(store, wholeFeatures),
|
||||
(str) => BackendRuntimeContext.FromSerializedString(str),
|
||||
(store) => new FrontendRuntimeContext(store, wholeFeatures),
|
||||
(store) => new BackendRuntimeContext(store),
|
||||
aspectDict,
|
||||
triggers,
|
||||
checkers,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export default function initialize(
|
|||
type,
|
||||
hostname,
|
||||
storageSchema,
|
||||
() => (store) =>
|
||||
(store) =>
|
||||
new FrontendRuntimeContext(
|
||||
store,
|
||||
wholeFeatures
|
||||
|
|
|
|||
Loading…
Reference in New Issue