mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
c0fc7c5bcd
closes #4409
17 lines
566 B
JavaScript
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;
|