Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Allow arrays as providers #1

Closed
weierophinney opened this issue Jan 10, 2017 · 0 comments
Closed

Allow arrays as providers #1

weierophinney opened this issue Jan 10, 2017 · 0 comments

Comments

@weierophinney
Copy link
Member

Per the modular skeleton discussion, we need to likely allow providing arrays to the ConfigAggregator constructor. This could be done in one of two ways:

  • an ArrayProvider, which would accept an array to the constructor, and then simply return it on invocation.
  • an actual array

The former would work with the current architecture, and only require an additional class.

The latter approach would likely require changing loadConfigFromProviders() to work differently, as it presently assumes a provider is a callable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant