Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Chain dependency construction #2

Open
eser opened this issue Feb 3, 2019 · 0 comments
Open

Chain dependency construction #2

eser opened this issue Feb 3, 2019 · 0 comments

Comments

@eser
Copy link
Owner

eser commented Feb 3, 2019

Need a new feature for passing current service context to service resolver.

const context = new ServiceContext(container => {
    container.set('mongodb', transient(MongoConnection));
    container.set('userRepository', transient(ctx => new UserRepository(ctx.get('mongodb'))));
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant