X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterfaceModule.kt;h=63f3fc639971661dd44d2680b4a7ac3ff6487f99;hb=8c387bf3c1315ee19902a8d15616ef394b486ffe;hp=3d87aa746ede638c61127dcfaf3d5844ff23c572;hpb=174865a5a746755a0c09f51a7840ac0e6034cbb6;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt b/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt index 3d87aa7..63f3fc6 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt @@ -1,5 +1,6 @@ package net.pterodactylus.sone.web +import com.google.common.eventbus.* import com.google.inject.* import freenet.support.api.* import net.pterodactylus.sone.core.* @@ -10,6 +11,7 @@ import net.pterodactylus.sone.freenet.wot.* import net.pterodactylus.sone.main.* import net.pterodactylus.sone.template.* import net.pterodactylus.sone.text.* +import net.pterodactylus.sone.web.notification.* import net.pterodactylus.util.notify.* import net.pterodactylus.util.template.* import javax.inject.* @@ -132,4 +134,9 @@ class WebInterfaceModule : AbstractModule() { fun getNotificationManager() = NotificationManager() + @Provides + @Singleton + fun getNotificationHandler(eventBus: EventBus, loaders: Loaders, notificationManager: NotificationManager) = + NotificationHandler(eventBus, loaders, notificationManager) + }