File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -717,7 +717,16 @@ protected function initSettings( ?ISettingSource $source ): void
717717
718718 try
719719 {
720- $ this ->_settings = new SettingManager ( $ source );
720+ // If source is already a SettingManager, use it directly (avoids double-wrapping)
721+ // Otherwise wrap the raw source in a SettingManager (backward compatibility)
722+ if ( $ source instanceof SettingManager )
723+ {
724+ $ this ->_settings = $ source ;
725+ }
726+ else
727+ {
728+ $ this ->_settings = new SettingManager ( $ source );
729+ }
721730
722731 $ basePath = $ this ->getSetting ( 'system ' ,'base_path ' ) ?? $ defaultBasePath ;
723732 $ fallback = new Env ( Data \Env::getInstance ( "$ basePath/.env " ) );
Original file line number Diff line number Diff line change 11## 0.8.16
2+ * Fix to support
23
34## 0.8.15 2026-01-13
4-
55## 0.8.14 2026-01-12
6-
76## 0.8.13 2026-01-06
87
98## 0.8.12 2026-01-01
109* Added psr-11 container support.
1110
1211## 0.8.11 2025-12-26
13-
1412## 0.8.10 2025-11-28
1513
1614## 0.8.9 2025-11-27
2523* Renamed config.yaml to neuron.yaml
2624
2725## 0.8.5 2025-11-11
28-
2926## 0.8.4 2025-11-10
30-
3127## 0.8.3 2025-11-10
3228* Improved error handling.
3329
3430## 0.8.2 2025-11-08
35-
3631## 0.8.1 2025-11-06
3732
3833* Added getSettingManager() method to provide access to SettingManager instance
3934
4035## 0.7.1 2025-11-04
41-
4236## 0.7.0 2025-08-14
4337* Refactored get/set setting methods.
4438
4539## 0.6.33 2025-05-23
4640* Added the Crashed state.
4741
4842## 0.6.32 2025-05-21
49-
5043## 0.6.31
51-
5244## 0.6.30 2025-02-06
5345* Transitioned from core package to application.
5446
You can’t perform that action at this time.
0 commit comments