aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 5eaa1e15c..00ab05d57 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -28,6 +28,7 @@ import org.traccar.model.BaseModel;
import org.traccar.model.Device;
import org.traccar.model.Group;
import org.traccar.session.ConnectionManager;
+import org.traccar.storage.Storage;
public final class Context {
@@ -82,7 +83,7 @@ public final class Context {
}
if (config.hasKey(Keys.DATABASE_URL)) {
- dataManager = new DataManager(config);
+ dataManager = new DataManager(config, Main.getInjector().getInstance(Storage.class));
}
if (dataManager != null) {
@@ -93,7 +94,8 @@ public final class Context {
identityManager = deviceManager;
- permissionsManager = new PermissionsManager(dataManager, dataManager.getStorage());
+ permissionsManager = new PermissionsManager(
+ dataManager, Main.getInjector().getInstance(Storage.class));
}