📄 Update year in file headers
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / notification / FirstStartHandler.kt
index c698846..3dc8689 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - FirstStartHandler.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
+ * Sone - FirstStartHandler.kt - Copyright Â© 2019–2020 David â€˜Bombe’ Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,14 +20,15 @@ package net.pterodactylus.sone.web.notification
 import com.google.common.eventbus.*
 import net.pterodactylus.sone.core.event.*
 import net.pterodactylus.util.notify.*
+import javax.inject.*
 
 /**
  * Handles the notification shown on first start of Sone.
  */
-class FirstStartHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) {
+class FirstStartHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("firstStart") private val notification: TemplateNotification) {
 
        @Subscribe
-       fun firstStart(firstStart: FirstStart) {
+       fun firstStart(@Suppress("UNUSED_PARAMETER") firstStart: FirstStart) {
                notificationManager.addNotification(notification)
        }