Module: Helpers

Common helpers for service container.

Source:
utils/Helpers.js

Mixins

withProps

Methods


<static> dependsOn(features, app, fromFeature)

Parameters:
Name Type Description
features string | array.<string>

Dependencies of other features.

app ServiceContainer

Origin service container app.

fromFeature string

Dependent feature.

Source:
utils/Helpers.js

<static> ensureFeatureName(name)

Parameters:
Name Type Description
name string
Source:
utils/Helpers.js

<static> requireConfig(app, config, keys, prefix)

Check required config item

Parameters:
Name Type Description
app App
config object
keys array
prefix string

Path of config item

Source:
utils/Helpers.js

<static> restart(envVariables)

Restart the current process.

Parameters:
Name Type Description
envVariables object

Environment variables

Source:
utils/Helpers.js