2014-11-27 15:50:15 -05:00
|
|
|
import getConfig from 'ghost/utils/config-parser';
|
|
|
|
|
2014-06-23 11:01:43 -05:00
|
|
|
var ConfigInitializer = {
|
|
|
|
name: 'config',
|
|
|
|
|
|
|
|
initialize: function (container, application) {
|
2014-11-27 15:50:15 -05:00
|
|
|
var config = getConfig();
|
|
|
|
application.register('ghost:config', config, {instantiate: false});
|
2014-06-23 11:01:43 -05:00
|
|
|
|
|
|
|
application.inject('route', 'config', 'ghost:config');
|
|
|
|
application.inject('controller', 'config', 'ghost:config');
|
2014-06-23 16:12:22 -05:00
|
|
|
application.inject('component', 'config', 'ghost:config');
|
2014-06-23 11:01:43 -05:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ConfigInitializer;
|