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

Where did TyphoonParameterInjectedAsCollection go? #221

Closed
enmiller opened this issue May 22, 2014 · 2 comments
Closed

Where did TyphoonParameterInjectedAsCollection go? #221

enmiller opened this issue May 22, 2014 · 2 comments

Comments

@enmiller
Copy link

Just started the process of upgrading from 1.8.2 to 2.0.x and noticed that the TyphoonParameterInjectedAsCollection class is missing. I'm assuming this was intentional but I cannot find any documentation on why it went away or how to replace its functionality now that it is gone.

Can you provide any insight?

@alexgarbarev
Copy link
Contributor

Hi. Currently you can inject collections as is. For example

        [definition useInitializer:@selector(initWithSet:) parameters:^(TyphoonMethod *initializer) {
            [initializer injectParameterWith:[NSSet setWithObject:[self anotherDefinition]]];
        }]

check documentation here:
https://github.com/typhoon-framework/Typhoon/wiki/Types%20of%20Injections#injecting-collections

@enmiller
Copy link
Author

Thanks for the response.

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

No branches or pull requests

2 participants