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

@@ -23,6 +23,7 @@
* @author Tony Murray <murraytony@gmail.com>
*/
use LibreNMS\Config;
use LibreNMS\Util\Snmpsim;
$install_dir = realpath(__DIR__ . '/..');
@@ -83,6 +84,7 @@ if (getenv('DBTEST')) {
unset($db_config);
}
Config::reload(); // reload the config including database config
\LibreNMS\Util\OS::updateCache(true); // Force update of OS Cache
app()->terminate(); // destroy the bootstrap Laravel application