/** * Load config-file * @param string $paths Path * @return boolean - Success. */ public static function loadConfig($paths) { $apaths = explode(';', $paths); foreach ($apaths as $path) { if (is_file($p = realpath($path))) { $ext = strtolower(pathinfo($p, PATHINFO_EXTENSION)); if ($ext === 'conf') { return Daemon::$config->loadFile($p); } else { Daemon::log('Config file \'' . $p . '\' has unsupported file extension.'); return false; } } } Daemon::log('Config file not found in \'' . $paths . '\'., dir: ' . __DIR__); return false; }