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

Fail register if registering the same token twice #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dulowski-marek
Copy link
Contributor

Abstract

This ensures an error is thrown when attempting to register the same token twice.

Because Injector is designed to be instantiated once per certain dependency tree, being able to change the internal state of injector is against the designed behaviour and would cause hard to debug runtime issues.

@dulowski-marek dulowski-marek added the enhancement New feature or request label Jan 10, 2022
@dulowski-marek dulowski-marek self-assigned this Jan 10, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jan 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dulowski-marek
Copy link
Contributor Author

This will affect how users test their solutions using the library. Therefore, the testing strategy has to be defined accordingly and only then I can put constraints on the current behaviour (which will be a breaking change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant