Implements dependency injection with Brandi

Introduces Brandi DI container for managing application dependencies.

This change replaces the existing factory pattern with a proper
dependency injection mechanism, improving code modularity,
testability, and maintainability. It configures all managers and core
services within the container, ensuring proper dependency resolution.
This commit is contained in:
Janus C. H. Knudsen 2025-10-14 22:53:28 +02:00
parent 020d5c3efc
commit f7c67e6253
5 changed files with 170 additions and 24 deletions

7
package-lock.json generated
View file

@ -9,6 +9,7 @@
"version": "1.0.0",
"dependencies": {
"@rollup/rollup-win32-x64-msvc": "^4.52.2",
"brandi": "^5.0.0",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"fuse.js": "^7.1.0"
@ -1124,6 +1125,12 @@
"require-from-string": "^2.0.2"
}
},
"node_modules/brandi": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/brandi/-/brandi-5.0.0.tgz",
"integrity": "sha512-oztvITQgvuFb2K+NWdHLx0mMH8TGO3ASrQ43FZzmfiq5rCj0DRlsuZ6Efi/yeu3hyGx/Y+Z1xLGp2qzDWpiNYA==",
"license": "ISC"
},
"node_modules/cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",