diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-28 20:42:25 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-04-28 20:42:44 +0200 |
commit | 3ba521e5d60a05510aa97d826215b7660d3dcb59 (patch) | |
tree | f843fd180032c8b10917e32b6cf790574c3f2185 /app/class | |
parent | 9090550d241f9f7b3246b24bfd323bd988add749 (diff) | |
download | wcms-3ba521e5d60a05510aa97d826215b7660d3dcb59.tar.gz wcms-3ba521e5d60a05510aa97d826215b7660d3dcb59.zip |
chore: add whoops for a better dev environment
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Config.php | 16 |
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; + } + } + |