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'),
|
2014-10-13 19:41:03 +04:00
|
|
|
tagsUI = $('body').data('tagsui'),
|
2014-08-10 19:15:10 +04:00
|
|
|
fileStorage = $('body').data('filestorage'),
|
|
|
|
blogUrl = $('body').data('blogurl');
|
2014-07-21 22:00:54 +04:00
|
|
|
|
2014-08-10 19:15:10 +04:00
|
|
|
application.register(
|
2014-10-13 19:41:03 +04:00
|
|
|
'ghost:config', {apps: apps, fileStorage: fileStorage, blogUrl: blogUrl, tagsUI: tagsUI}, {instantiate: false}
|
2014-08-10 19:15:10 +04:00
|
|
|
);
|
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;
|