Skip to content
New issue

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

Simplify Dependency Injection, remove framework #251

Merged
merged 21 commits into from
Oct 18, 2023
Merged

Conversation

kienstra
Copy link
Member

@kienstra kienstra commented Oct 16, 2023

Changes

  • Remove inversify, the dependency injection framework
  • Replace it with a composition root
  • Now, you can see where all of the instances come from:

const registrarFactory = new RegistrarFactory(
new Complain(editorGateway),
configFile,
createConfigFile,
debugRepo,
new EnterLicense(licenseInput),
enterToken,
exitAllJobs,
exitJob,
new FirstActivation(editorGateway, reporterGateway, email),

@kienstra kienstra merged commit 0b38efb into develop Oct 18, 2023
@kienstra kienstra deleted the update/simpler-di branch October 18, 2023 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant