Methods
getInstance(path, config, root, requestId)
Will create a new instance of the requested module
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The file path of the module |
config |
object | The injection config resolved by the module analyzer |
root |
string | The tree to work in |
requestId |
string | The unique request id to identify circular dependencies |
requestIsCircular(path, root, requestId) → {boolean}
Will check, if the current request has already visited this stage once.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The file path of the module |
root |
string | The tree to work in |
requestId |
string | The unique request id to identify circular dependencies |
Returns:
true, if a circular dependency occurred.
- Type
- boolean