We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前通过 ctx/app 形式获取 Container 的形式是不统一的(app.getContainer() / ctx.container),希望做出如下统一:
app.getContainer()
ctx.container
container
app.container
ctx.container = xxx
// a_singleton_clazz.ts import { Injectable, Inject, Container } from '@artus/injection'; @Injectable() export default class MyClazz { @Inject() container: Container; // Supported by #139 } // a_execution_clazz.ts import { Injectable, Inject, Container, ScopeEnum } from '@artus/injection'; @Injectable({ scope: ScopeEnum.Execution }) export default class MyClazz { @Inject() executionContainer: ExecutionContainer; // Will support }
The text was updated successfully, but these errors were encountered:
属于 Breaking Change,考虑正式版发布后再想统一就更难,建议 Alpha 版本处理掉,需要 Check
@atian25 @hyj1991 @DuanPengfei @JerrysShan @Beace @wengeezhang
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
目前通过 ctx/app 形式获取 Container 的形式是不统一的(
app.getContainer()
/ctx.container
),希望做出如下统一:container
属性(即ctx.container
/app.container
)ctx.container = xxx
)归类为不当使用,后期考虑通过 getter/setterThe text was updated successfully, but these errors were encountered: