diff options
author | marzavec <admin@marzavec.com> | 2019-03-19 07:36:21 +0100 |
---|---|---|
committer | marzavec <admin@marzavec.com> | 2019-03-19 07:36:21 +0100 |
commit | c634e03cb553e21158fddc6d4221a54aa799de79 (patch) | |
tree | 74f303d4ab65b08c7ec316fb713146cc99024c00 /server/src/managers/imports-manager.js | |
parent | Merge pull request #56 from paulgreg/manifest (diff) | |
download | hackchat-c634e03cb553e21158fddc6d4221a54aa799de79.tar.gz hackchat-c634e03cb553e21158fddc6d4221a54aa799de79.zip |
refactoring 1 of 2
Diffstat (limited to '')
-rw-r--r-- | server/src/serverLib/ImportsManager.js (renamed from server/src/managers/imports-manager.js) | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/server/src/managers/imports-manager.js b/server/src/serverLib/ImportsManager.js index d8b2144..a049d5c 100644 --- a/server/src/managers/imports-manager.js +++ b/server/src/serverLib/ImportsManager.js @@ -14,24 +14,12 @@ class ImportsManager { /** * Create a `ImportsManager` instance for (re)loading classes and config * - * @param {Object} core reference to the global core object * @param {String} base executing directory name; __dirname */ - constructor (core, base) { - this._core = core; + constructor (base) { this._base = base; this._imports = {}; - this._optionalConfigs = {}; - } - - /** - * Pull core reference - * - * @type {Object} readonly - */ - get core () { - return this._core; } /** @@ -44,15 +32,6 @@ class ImportsManager { } /** - * Pull optional (none-core) config options - * - * @type {Object} - */ - get optionalConfigs () { - return Object.assign({}, this._optionalConfigs); - } - - /** * Initialize this class and start loading target directories * */ @@ -89,12 +68,6 @@ class ImportsManager { return errorText; } - if (imported.configs) { - imported.configs.forEach(config => { - this._optionalConfigs[config.name] = config; - }); - } - if (!this._imports[dirName]) { this._imports[dirName] = {}; } |