mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
21 lines
664 B
JavaScript
21 lines
664 B
JavaScript
|
import Notifications from 'ghost/utils/notifications';
|
||
|
|
||
|
var registerNotifications = {
|
||
|
name: 'registerNotifications',
|
||
|
|
||
|
initialize: function (container, application) {
|
||
|
application.register('notifications:main', Notifications);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var injectNotifications = {
|
||
|
name: 'injectNotifications',
|
||
|
|
||
|
initialize: function (container, application) {
|
||
|
application.inject('controller', 'notifications', 'notifications:main');
|
||
|
application.inject('component', 'notifications', 'notifications:main');
|
||
|
application.inject('route', 'notifications', 'notifications:main');
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export {registerNotifications, injectNotifications};
|