Revert "Convert Config to a singleton (#16349)" (#16382)

This reverts commit f1e7a218f0.
This commit is contained in:
Jellyfrog
2024-09-10 09:59:20 +02:00
committed by GitHub
parent f1e7a218f0
commit 77fa7573cf
16 changed files with 470 additions and 713 deletions

View File

@@ -20,7 +20,6 @@
namespace LibreNMS;
use App\Facades\LibrenmsConfig;
use App\Models\Device;
use App\Models\Eventlog;
use App\Models\Port;
@@ -729,9 +728,9 @@ class IRCBot
return $this->loadExternal();
}
LibrenmsConfig::reload();
$new_config = Config::load();
$this->respond('Reloading configuration & defaults');
if (LibrenmsConfig::getAll() != $this->config) {
if ($new_config != $this->config) {
$this->__construct();
return;