-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: singleton reinstantiated if registered at last & fix: initialize…
…d class attribute being overridden (#44) * fix: singleton reinstantiated if registered at last changed service provider build logic in order to avoid singletons to be instantiated n times when they're registered after its dependant * fix: initialized class attribute being overridden changed the "ignore attributes" logic so that if a class variable has already been initialized externally, rodi doesn't attempt to reinitialize it (and to also prevent overriding it if the initialized class variable is also a registered object).
- Loading branch information
1 parent
de16370
commit 6043b5b
Showing
3 changed files
with
121 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters