toast-message-service.js 429 B

1234567891011121314
  1. import ToastMessageService from 'misago/services/toast-message';
  2. export function initialize(container, application) {
  3. application.register('service:toast-message', ToastMessageService, { singleton: true });
  4. [ 'route', 'controller', 'component' ].forEach((factory) => {
  5. application.inject(factory, 'toast', 'service:toast-message');
  6. });
  7. }
  8. export default {
  9. name: 'toast-message-service',
  10. initialize: initialize
  11. };