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

Nested TyphoonConfig not working #280

Closed
jasperblues opened this issue Nov 26, 2014 · 1 comment
Closed

Nested TyphoonConfig not working #280

jasperblues opened this issue Nov 26, 2014 · 1 comment
Labels

Comments

@jasperblues
Copy link
Member

Given the following:

- (INFOwnerDetailsManager *)ownerDetailsManagerForUser:(INFUser *)user
{
    return [TyphoonDefinition withClass:[INFOwnerDetailsManager class] configuration:^(TyphoonDefinition *definition) {
        [definition useInitializer:@selector(initWithEngine:initialUserDetails:) parameters:^(TyphoonMethod *initializer) {
            [initializer injectParameterWith:[self engineWithPollingInterval:TyphoonConfig(@"data.ownerDetails.polling")
                cacheExpire:TyphoonConfig(@"data.ownerDetails.expire")]];
            [initializer injectParameterWith:user];
        }];
    }];
}
``

. . the TyphoonConfig that goes to the `engineWithPollingInterval` is not resolved. 
@jasperblues
Copy link
Member Author

Oops. . I downgraded from :head to 2.3.0 because #264 did not work out for me. . so that would be why the above did not work.

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

No branches or pull requests

1 participant