From 82c3c4dba8d9dcacb8c367694b6289c56c2bf85c Mon Sep 17 00:00:00 2001 From: Egor Tolstoy Date: Sun, 24 Jan 2016 12:13:15 +0300 Subject: [PATCH] Fixed Issue #474: GlobalNamespace is now applied properly to TyphoonConfigPostProcessors --- Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m b/Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m index 7ea120ba6..38b5cc5d5 100644 --- a/Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m +++ b/Source/Factory/Internal/TyphoonAssemblyDefinitionBuilder.m @@ -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);