From 6c75f94ec283322299407b26a440154095b1e8ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 17 May 2019 10:59:37 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=90=9B=20Make=20PageToadletFactory=20injec?= =?utf8?q?table?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) = -- 2.7.4