mirror of
https://github.com/discourse/discourse.git
synced 2025-01-24 07:22:01 +08:00
20 lines
642 B
JavaScript
20 lines
642 B
JavaScript
import LogsNotice from 'discourse/services/logs-notice';
|
|
import Singleton from 'discourse/mixins/singleton';
|
|
|
|
export default {
|
|
name: "logs-notice",
|
|
after: "message-bus",
|
|
|
|
initialize: function (container) {
|
|
const siteSettings = container.lookup('site-settings:main');
|
|
const messageBus = container.lookup('message-bus:main');
|
|
const keyValueStore = container.lookup('key-value-store:main');
|
|
const currentUser = container.lookup('current-user:main');
|
|
LogsNotice.reopenClass(Singleton, {
|
|
createCurrent() {
|
|
return this.create({ messageBus, keyValueStore, siteSettings, currentUser });
|
|
}
|
|
});
|
|
}
|
|
};
|