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

Implement dependency injection #120

Open
boesing opened this issue Aug 11, 2022 · 2 comments
Open

Implement dependency injection #120

boesing opened this issue Aug 11, 2022 · 2 comments

Comments

@boesing
Copy link
Member

boesing commented Aug 11, 2022

This component does not really use OOP in most places and thus, providing logging and stuff is quite complicated.

To solve this, we can implement a dependency injection library.

I do quote the answer from @internalsystemerror here as he provided some information on how we could move over to dependency injection.


I'm mostly familiar with the DI in Angular, but there are (smaller) libraries available e.g. TypeDI or even TSyringe by MS

Originally posted by @internalsystemerror in #119 (comment)

@Ocramius
Copy link
Member

Does a bootstrap script not suffice? Like an entrypoint script? In theory, we don't need a DIC at all 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants