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
My program:
import "reflect-metadata"; import { Container } from "inversify"; import { DbService } from "@/service/db/db-service"; import { ExpressService } from "@/service/express/express-service"; import { SignUpService } from "@/service/signup/sign-up-service"; import { ProfileService } from "@/service/profile/profile-service"; let container = new Container({ defaultScope: "Singleton" }); container.bind(DbService).toSelf(); container.bind(ExpressService).toSelf(); container.bind(SignUpService).toSelf(); container.bind(ProfileService).toSelf();
But these services are not initialized until I get them via container.get*. How do I cause the initialization of ALL services?
container.get*
The text was updated successfully, but these errors were encountered:
You should get them to initialize them. There's currently no API method to initialize all the services.
Sorry, something went wrong.
No branches or pull requests
My program:
But these services are not initialized until I get them via
container.get*
. How do I cause the initialization of ALL services?The text was updated successfully, but these errors were encountered: