2014-03-22 07:08:15 -05:00
|
|
|
import Notifications from 'ghost/utils/notifications';
|
|
|
|
|
2014-06-09 06:02:51 -05:00
|
|
|
var injectNotificationsInitializer = {
|
2014-05-09 00:00:10 -05:00
|
|
|
name: 'injectNotifications',
|
2014-06-30 07:58:10 -05:00
|
|
|
before: 'authentication',
|
2014-03-22 07:08:15 -05:00
|
|
|
|
|
|
|
initialize: function (container, application) {
|
|
|
|
application.register('notifications:main', Notifications);
|
|
|
|
|
|
|
|
application.inject('controller', 'notifications', 'notifications:main');
|
|
|
|
application.inject('component', 'notifications', 'notifications:main');
|
2014-06-24 05:00:28 -05:00
|
|
|
application.inject('router', 'notifications', 'notifications:main');
|
2014-03-22 07:08:15 -05:00
|
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
|
|
}
|
2014-06-09 06:02:51 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export default injectNotificationsInitializer;
|