Replace constant DEBUG to use in Config. Remove start profiler from FrontController (moved to bootstrap).
This commit is contained in:
@ -49,7 +49,7 @@ class RedisManager
|
||||
* @var Redis
|
||||
*/
|
||||
$connection = new Redis();
|
||||
if (defined('DEBUG') && DEBUG == true) {
|
||||
if (Config::get('DEBUG')) {
|
||||
$connection = new RedisDebug($connection);
|
||||
}
|
||||
if (!$connection->connect($host, $port)) {
|
||||
|
Reference in New Issue
Block a user