Class: ConfigResolver

ConfigResolver()

The Config Resolver is the central manager for configurations. It offers the functionality to resolve configuration entries based on the injected config path.

Constructor

new ConfigResolver()

Author:
  • Wolfgang Felbermeier (@f3lang)
Source:

Methods

addConfiguration(configuration, root)

Adds a new configuration to the collection

Parameters:
Name Type Description
configuration

The configuration object

root

The configuration root name

Source:

getConfig(root, path) → {*}

Returns a configuration entry of the available configurations

Parameters:
Name Type Description
root

The configuration root to look in

path

The path of the configuration to return

Source:
Returns:
Type
*