Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
3 answers
565 views

How should I refactor a singleton (to be used by a container) when the refactored class requires initialization and takes a dependency?

I'm refactoring an old app to use dependency injection.n I'm pretty new to DI. I have a class that used to be a singleton. I'm refactoring it into a non-singleton class and using the container to ...
user2871239's user avatar