🔥 Replace BaseL10n with Translation
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / page / SoneRequest.kt
index 1cc6911..703f953 100644 (file)
@@ -3,9 +3,14 @@ package net.pterodactylus.sone.web.page
 import freenet.clients.http.*
 import freenet.support.api.*
 import net.pterodactylus.sone.core.*
+import net.pterodactylus.sone.web.*
 import net.pterodactylus.util.web.*
 import java.net.*
 
-class SoneRequest(uri: URI, method: Method, httpRequest: HTTPRequest, toadletContext: ToadletContext, val core: Core) : FreenetRequest(uri, method, httpRequest, toadletContext)
+class SoneRequest(uri: URI, method: Method, httpRequest: HTTPRequest, toadletContext: ToadletContext, sessionManager: SessionManager,
+                                 val core: Core,
+                                 val webInterface: WebInterface
+) : FreenetRequest(uri, method, httpRequest, toadletContext, sessionManager)
 
-fun FreenetRequest.toSoneRequest(core: Core) = SoneRequest(uri, method, httpRequest, toadletContext, core)
+fun FreenetRequest.toSoneRequest(core: Core, webInterface: WebInterface) =
+               SoneRequest(uri, method, httpRequest, toadletContext, sessionManager, core, webInterface)