aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-11 16:22:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-11 16:22:29 -0700
commit0d7985bd502ae106c5c7afcd2b8263058b090e5f (patch)
tree90cd0e6b91a33221b11e7907f9fb882de6b789c5 /src/main
parent9c9e62bdba68a1f1d29cd5082ffd47eb1f46dab9 (diff)
downloadtrackermap-server-0d7985bd502ae106c5c7afcd2b8263058b090e5f.tar.gz
trackermap-server-0d7985bd502ae106c5c7afcd2b8263058b090e5f.tar.bz2
trackermap-server-0d7985bd502ae106c5c7afcd2b8263058b090e5f.zip
Another injection fix
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/MainModule.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index ed54853ed..0b3275cfc 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -30,6 +30,7 @@ import org.traccar.broadcast.BroadcastService;
import org.traccar.config.Config;
import org.traccar.config.Keys;
import org.traccar.database.LdapProvider;
+import org.traccar.database.NotificationManager;
import org.traccar.database.UsersManager;
import org.traccar.helper.SanitizerModule;
import org.traccar.notification.EventForwarder;
@@ -123,6 +124,11 @@ public class MainModule extends AbstractModule {
}
@Provides
+ public static NotificationManager provideNotificationManager() {
+ return Context.getNotificationManager();
+ }
+
+ @Provides
public static IdentityManager provideIdentityManager() {
return Context.getIdentityManager();
}