From: David ‘Bombe’ Roden Date: Fri, 17 May 2019 08:59:37 +0000 (+0200) Subject: 🐛 Make PageToadletFactory injectable X-Git-Tag: v79^2~47 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6c75f94ec283322299407b26a440154095b1e8ce;p=Sone.git 🐛 Make PageToadletFactory injectable --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt index 7a552db..c446432 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt @@ -20,8 +20,9 @@ package net.pterodactylus.sone.web.page import freenet.client.* import freenet.clients.http.* import net.pterodactylus.util.web.* +import javax.inject.* -class PageToadletFactory(private val highLevelSimpleClient: HighLevelSimpleClient, private val sessionManager: SessionManager, private val pathPrefix: String) { +class PageToadletFactory @Inject constructor(private val highLevelSimpleClient: HighLevelSimpleClient, private val sessionManager: SessionManager, private val pathPrefix: String) { @JvmOverloads fun createPageToadlet(page: Page, menuName: String? = null) =