From b729b46dfda4359543b762728dde60ba47b1cf66 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 22 Nov 2024 13:25:44 -0600 Subject: [PATCH] Testing fix Attempt to call LibreNMS config directly in DynamicConfigItem test --- LibreNMS/Util/DynamicConfigItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Util/DynamicConfigItem.php b/LibreNMS/Util/DynamicConfigItem.php index bcf1ae0c3352..f78ebdeb050a 100644 --- a/LibreNMS/Util/DynamicConfigItem.php +++ b/LibreNMS/Util/DynamicConfigItem.php @@ -25,7 +25,7 @@ namespace LibreNMS\Util; -use LibreNMS\Config; +use App\Facades\LibrenmsConfig; use Validator; #[\AllowDynamicProperties] @@ -50,7 +50,7 @@ class DynamicConfigItem implements \ArrayAccess public function __construct($name, $settings = []) { $this->name = $name; - $this->value = Config::get($this->name, $this->default); + $this->value = LibrenmsConfig::get($this->name, $this->default); foreach ($settings as $key => $value) { $this->$key = $value;