This repository was archived by the owner on Oct 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Config/Application/ProcessManagement Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,13 @@ public function isNodeJsApplication($appData): bool
132132 public function loadRoutes (object $ rawData ): void
133133 {
134134 if (!empty ($ rawData ->routes )) {
135+ $ jsonRoutes = json_decode (json_encode ($ rawData ), true )['routes ' ];
135136 if (!is_array ($ rawData ->routes )) {
136- foreach (( array ) $ rawData -> routes as $ routeName => $ routeData ) {
137+ foreach ($ jsonRoutes as $ routeName => $ routeData ) {
137138 $ this ->_routes [$ routeName ] = new Route ($ routeName , $ routeData );
138139 }
139140 } else {
140- $ this ->_routes ['default ' ] = new Route ('default ' , ( array ) $ rawData -> routes [0 ], true );
141+ $ this ->_routes ['default ' ] = new Route ('default ' , $ jsonRoutes [0 ], true );
141142 }
142143 }
143144 }
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ class ProcessIsolation
4343 */
4444 private Uidmap $ _uidmap ;
4545
46+ public function __construct (array $ data )
47+ {
48+ $ this ->parseFromArray ($ data );
49+ }
50+
4651 /**
4752 * @param Automount $automount
4853 */
You can’t perform that action at this time.
0 commit comments