From 733b1e4c50e5943de559778330061ed803070e1c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 22 Feb 2018 16:22:17 +0100 Subject: Support more parameters from environment --- adei/configs/config.actual.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'adei/configs/config.actual.php') diff --git a/adei/configs/config.actual.php b/adei/configs/config.actual.php index 4c28e59..f4f4a99 100644 --- a/adei/configs/config.actual.php +++ b/adei/configs/config.actual.php @@ -7,10 +7,10 @@ $ADEI_SETUP = env("ADEI_SETUP", "all"); - $ADEI_RELEASE = true; - $LOGGER_LOG_REQUESTS = false; - $LOGGER_LOG_OUTPUT = false; - $LOGGER_STORE_OBJECTS = false; + $ADEI_RELEASE = filter_var(env("ADEI_RELEASE", true), FILTER_VALIDATE_BOOLEAN); + $LOGGER_LOG_REQUESTS = filter_var(env("ADEI_WRITE_LOGS", false), FILTER_VALIDATE_BOOLEAN); + $LOGGER_LOG_OUTPUT = filter_var(env("ADEI_WRITE_LOGS", false), FILTER_VALIDATE_BOOLEAN); + $LOGGER_STORE_OBJECTS = filter_var(env("ADEI_DEBUG", false), FILTER_VALIDATE_BOOLEAN); $ADEI_DB = array ( "host" => env("MYSQL_SERVER", "localhost"), @@ -19,4 +19,6 @@ "user" => env("MYSQL_USER", "adei"), "password" => env("MYSQL_PASSWORD", "adei") ); -?> \ No newline at end of file + + $ADEI_CACHE_SCHEDULER = filter(env("ADEI_SCHEDULER", false), FILTER_VALIDATE_BOOLEAN); +?> -- cgit v1.2.3