2014-03-22 16:08:15 +04:00
|
|
|
import Notifications from 'ghost/utils/notifications';
|
|
|
|
|
2014-06-09 15:02:51 +04:00
|
|
|
var injectNotificationsInitializer = {
|
2014-05-09 09:00:10 +04:00
|
|
|
name: 'injectNotifications',
|
2014-03-22 16:08:15 +04: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 14:00:28 +04:00
|
|
|
application.inject('router', 'notifications', 'notifications:main');
|
2014-03-22 16:08:15 +04:00
|
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
|
|
}
|
2014-06-09 15:02:51 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
export default injectNotificationsInitializer;
|