From: Roland Häder Date: Fri, 19 May 2017 13:44:36 +0000 (+0200) Subject: Please avoid these class_exists() outside any object factory X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=a87164803b5faab197d5e5512abe5ac3e735ca65 Please avoid these class_exists() outside any object factory Signed-off-by: Roland Häder --- diff --git a/framework/config/class_FrameworkConfiguration.php b/framework/config/class_FrameworkConfiguration.php index f7a48ece..88bbcf21 100644 --- a/framework/config/class_FrameworkConfiguration.php +++ b/framework/config/class_FrameworkConfiguration.php @@ -272,7 +272,7 @@ class FrameworkConfiguration implements Registerable { // Al fine, set it $this->setServerAddress($serverIp); - } elseif (class_exists('ConsoleTools')) { + } else { // Run auto-detecting through console tools lib ConsoleTools::acquireSelfIPAddress(); }