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

Injection of same property twice #447

Closed
juyka opened this issue Nov 17, 2015 · 1 comment
Closed

Injection of same property twice #447

juyka opened this issue Nov 17, 2015 · 1 comment

Comments

@juyka
Copy link

juyka commented Nov 17, 2015

+[TyphoonDefinition withClass:configuration:] allows injection of same property twice.

    [TyphoonDefinition withClass:[AuthorizationInteractor class]
                   configuration:^(TyphoonDefinition *definition) {
                       [definition injectProperty:@selector(presenter)
                                             with:[self authorizationPresenter]];
                       [definition injectProperty:@selector(accountService)
                                             with:[self.serviceAssembly accountService]];
                       [definition injectProperty:@selector(peopleService)
                                             with:[self.serviceAssembly peopleService]];
                       [definition injectProperty:@selector(accountService)
                                             with:[self.serviceAssembly accountService]];
                   }];

In this code I'm injecting accountService property twice. I expected an exception or NSLog at least.

@jasperblues
Copy link
Member

@juyka Thanks for reporting. We'll fix shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants