Skip to content

Commit

Permalink
Expose an injector's modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Williams committed Jul 15, 2014
1 parent cff782b commit db1bb8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/JSObjectionInjector.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
- (id)withoutModuleCollection:(NSArray *)moduleClasses;
- (void)injectDependencies:(id)object;
- (id)objectForKeyedSubscript: (id)key;
- (NSArray *)modules;
@end
4 changes: 4 additions & 0 deletions Source/JSObjectionInjector.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ - (void)injectDependencies:(id)object {
JSObjectionUtils.injectDependenciesIntoProperties(self, [object class], object);
}

- (NSArray *)modules {
return [_modules copy];
}

#pragma mark - Private

- (void)initializeEagerSingletons {
Expand Down

0 comments on commit db1bb8f

Please sign in to comment.