aboutsummaryrefslogtreecommitdiff
path: root/app/class/Config.php
diff options
context:
space:
mode:
authorVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2020-04-29 02:00:10 +0200
committerGitHub <noreply@github.com>2020-04-29 02:00:10 +0200
commit3075127e848150da8b8d19b45325460346c415c6 (patch)
tree4b0e984fe5c75cdce4249952623b6c7f6926d78c /app/class/Config.php
parent35e428c077dac7e57e6f6833562c88ae4a9867da (diff)
parent1619c194a32c1496f9015a491f5fa9dff350d47e (diff)
downloadwcms-3075127e848150da8b8d19b45325460346c415c6.tar.gz
wcms-3075127e848150da8b8d19b45325460346c415c6.zip
Merge pull request #108 from vincent-peugnet/add-whoops
Add whoops
Diffstat (limited to 'app/class/Config.php')
-rw-r--r--app/class/Config.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/app/class/Config.php b/app/class/Config.php
index 37321e4..c7d1a78 100644
--- a/app/class/Config.php
+++ b/app/class/Config.php
@@ -2,8 +2,6 @@
namespace Wcms;
-use Http\Client\Common\Plugin\RetryPlugin;
-
abstract class Config
{
protected static $pagetable = 'mystore';
@@ -35,6 +33,8 @@ abstract class Config
protected static $bookmark = [];
protected static $secretkey = null;
protected static $sentrydsn = '';
+ /** @var string|false $debug */
+ protected static $debug = false;
public const SECRET_KEY_MIN = 16;
public const SECRET_KEY_MAX = 128;
@@ -271,6 +271,11 @@ abstract class Config
return self::$sentrydsn;
}
+ public static function debug()
+ {
+ return self::$debug;
+ }
+
// __________________________________________ S E T ______________________________________
@@ -469,6 +474,13 @@ abstract class Config
}
}
+ public static function setdebug($debug)
+ {
+ if (is_string($debug)) {
+ self::$debug = $debug;
+ }
+ }
+