rsi.server icon indicating copy to clipboard operation
rsi.server copied to clipboard

Dependency injection mechnism needed

Open wzr1337 opened this issue 8 years ago • 7 comments

For a higher testibility of the main code, injecting an thus mocking service and resource independently from a plugin implementation would be very helpful.

This would mean quite some refac of the current code. In favor of testibility it should be seriously considered.

wzr1337 avatar Jan 24 '17 06:01 wzr1337

I could do it. Do you have any library in mind? Something like https://github.com/inversify/InversifyJS ?

SergejIsbrecht avatar May 17 '17 10:05 SergejIsbrecht

no nothing special.. it should play nicely with typescript and @types definitions though

wzr1337 avatar May 17 '17 14:05 wzr1337

How about the angular mechanism? https://github.com/mgechev/injection-js Haven`t had the time ti check it out myself but having the same way as in angular seems intriguing!

BenjaminDobler avatar Jul 21 '17 19:07 BenjaminDobler

anyone still interested in supporting here?

@fibric and I discussed this issue the other day

wzr1337 avatar Apr 20 '18 05:04 wzr1337

Needs some refactoring for sure :)

Sent with GitHawk

ghost avatar Apr 20 '18 05:04 ghost

ahh... you lie 😁

wzr1337 avatar Apr 20 '18 21:04 wzr1337

why should I? 😆

ghost avatar Apr 20 '18 21:04 ghost