-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(context): inject nested properties (#587)
Fix the implementation of `@inject` resolver to correctly support nested properties. Simplify the implementation of nested properties to avoid edge cases that are difficult to support: - All Context methods creating/returning full Binding instances require a key without property-path suffix. - Only `get` and `getSync`, which are (eventually) returning the bound value only, allow property-path suffix. - A new method `getValueOrPromise` is introduced, this is an internal method shared between `get`, `getSync` and `@inject` (`instantiateClass`). This method supports keys with property-path suffix too.
- Loading branch information
Showing
5 changed files
with
247 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.