2014-06-23 20:01:43 +04:00
|
|
|
var ConfigInitializer = {
|
|
|
|
name: 'config',
|
|
|
|
|
|
|
|
initialize: function (container, application) {
|
2014-07-21 22:00:54 +04:00
|
|
|
var apps = $('body').data('apps'),
|
|
|
|
fileStorage = $('body').data('filestorage');
|
|
|
|
|
|
|
|
application.register('ghost:config', {apps: apps, fileStorage: fileStorage}, {instantiate: false});
|
2014-06-23 20:01:43 +04:00
|
|
|
|
|
|
|
application.inject('route', 'config', 'ghost:config');
|
|
|
|
application.inject('controller', 'config', 'ghost:config');
|
2014-06-24 01:12:22 +04:00
|
|
|
application.inject('component', 'config', 'ghost:config');
|
2014-06-23 20:01:43 +04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ConfigInitializer;
|