Skip to content

feat(context): add support for binding configuration and injection#2259

Merged
raymondfeng merged 3 commits into
masterfrom
simpler-binding-options
May 23, 2019
Merged

feat(context): add support for binding configuration and injection#2259
raymondfeng merged 3 commits into
masterfrom
simpler-binding-options

Conversation

@raymondfeng

@raymondfeng raymondfeng commented Jan 16, 2019

Copy link
Copy Markdown
Contributor

Reactivation of #983 based on requirements illustrated by #2249.

  1. Add context.configure() to configure bindings
  2. Add context.getConfig/getConfigSync() to look up configuration for a binding
  3. Add @config, @config.getter, and @config.view to receive injection of configuration

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature IoC/Context @loopback/context: Dependency Injection, Inversion of Control

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants