0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/initializers/feature.js
2015-01-03 14:25:04 +00:00

17 lines
566 B
JavaScript

import Feature from 'ghost/utils/feature';
var injectFeatureInitializer = {
name: 'injectFeature',
after: ['config', 'store'],
initialize: function (container, application) {
application.register('feature:main', Feature);
application.inject('feature:main', 'store', 'store:main');
application.inject('feature:main', 'config', 'ghost:config');
application.inject('controller', 'feature', 'feature:main');
application.inject('route', 'feature', 'feature:main');
}
};
export default injectFeatureInitializer;