Skip to content

Commit

Permalink
Added factory case to InjectionContext.getValue.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnsonaz committed Apr 17, 2018
1 parent d512515 commit ad48e26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/InjectionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default class InjectionContext {
return binding.value;
case InjectionBindingType.constructor:
return InjectionContext.inject(binding.value);
case InjectionBindingType.factory:
return InjectionContext.injectFunction(binding.value);
}
}

Expand Down

0 comments on commit ad48e26

Please sign in to comment.