Comparing version 0.1.0-beta-43 to 0.1.0-beta-44
@@ -131,2 +131,12 @@ "use strict"; | ||
} | ||
// load config | ||
if (Type.isString(env.config)) { | ||
try { | ||
di.load(envPath + '/' + env.config)(component, di, this); | ||
} catch (e) { | ||
throw new error.Exception('Initialize config: ' + envPath + '/' + env.config, e); | ||
} | ||
} else { | ||
throw new error.DataError(env.config, 'Config file is not defined'); | ||
} | ||
// if there is no logger init logger | ||
@@ -138,3 +148,2 @@ if (!component.has('core/logger')) { | ||
} | ||
// add memory cache | ||
@@ -152,3 +161,2 @@ if (!component.has('cache/memory')) { | ||
} | ||
// set view component | ||
@@ -158,12 +166,2 @@ if (!component.has('core/view')) { | ||
} | ||
// load config | ||
if (Type.isString(env.config)) { | ||
try { | ||
di.load(envPath + '/' + env.config)(component, di, this); | ||
} catch (e) { | ||
throw new error.Exception('Initialize config: ' + envPath + '/' + env.config, e); | ||
} | ||
} else { | ||
throw new error.DataError(env.config, 'Config file is not defined'); | ||
} | ||
// http | ||
@@ -170,0 +168,0 @@ if (!component.has('core/http')) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-43", | ||
"version": "0.1.0-beta-44", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
127819