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

Add tsyringe to handle DI #298

Merged
merged 1 commit into from
Aug 11, 2024
Merged

Add tsyringe to handle DI #298

merged 1 commit into from
Aug 11, 2024

Conversation

LamboCreeper
Copy link
Member

Ahead of the introduction of a database to handle event tracking for our new role system, I have introduced TSyringe to handle dependency injection - instead of the awful getInstance() mechanism we have currently. This will make injecting repositories much easier.

I've had to refactor some tests in the process and deleted some files which are not used. So a bit of a clean up too!

@LamboCreeper LamboCreeper merged commit 3ad6fc8 into master Aug 11, 2024
3 checks passed
@LamboCreeper LamboCreeper deleted the di branch August 11, 2024 17:37
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.

2 participants