Skip to content

Commit

Permalink
Fixed Issue #474: GlobalNamespace is now applied properly to TyphoonC…
Browse files Browse the repository at this point in the history
…onfigPostProcessors
  • Loading branch information
Egor Tolstoy committed Jan 24, 2016
1 parent bc04952 commit 82c3c4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ - (TyphoonDefinition *)builtDefinitionForKey:(NSString *)key args:(TyphoonRuntim
if ([cached isKindOfClass:[TyphoonDefinition class]]) {
/* Set current runtime args to know passed arguments when build definition */
((TyphoonDefinition *) cached).currentRuntimeArguments = args;
[((TyphoonDefinition *) cached) applyConcreteNamespace:NSStringFromClass([self.assembly class])];

BOOL shouldApplyConcreteNamespace = [((TyphoonDefinition *) cached) space] == nil;
if (shouldApplyConcreteNamespace) {
[((TyphoonDefinition *) cached) applyConcreteNamespace:NSStringFromClass([self.assembly class])];
}
}

LogTrace(@"Did finish building definition for key: '%@'", key);
Expand Down

0 comments on commit 82c3c4d

Please sign in to comment.