aboutsummaryrefslogtreecommitdiff
path: root/app/class/Config.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-05 18:47:37 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-06 01:03:22 +0100
commit494da5f44937e55dc1e3180b62e2e6ef98eecc9f (patch)
treee2a7310525af7cf8f24b9df99adea1cc0e762931 /app/class/Config.php
parentc77fe80b05829fbfd5b94f43a7b709e3f3ec6c0d (diff)
downloadwcms-494da5f44937e55dc1e3180b62e2e6ef98eecc9f.tar.gz
wcms-494da5f44937e55dc1e3180b62e2e6ef98eecc9f.zip
feat: include Sentry for error reporting
Diffstat (limited to 'app/class/Config.php')
-rw-r--r--app/class/Config.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/class/Config.php b/app/class/Config.php
index 1a4bb17..555129b 100644
--- a/app/class/Config.php
+++ b/app/class/Config.php
@@ -32,6 +32,7 @@ abstract class Config
protected static $homeredirect = null;
protected static $interfacecss = null;
protected static $bookmark = [];
+ protected static $sentrydsn = '';
// _______________________________________ F U N _______________________________________
@@ -248,6 +249,11 @@ abstract class Config
return self::$bookmark;
}
+ public static function sentrydsn()
+ {
+ return self::$sentrydsn;
+ }
+
// __________________________________________ S E T ______________________________________
@@ -426,6 +432,13 @@ abstract class Config
}
}
+ public static function setsentrydsn($sentrydsn)
+ {
+ if (is_string($sentrydsn)) {
+ self::$sentrydsn = $sentrydsn;
+ }
+ }
+