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
132
132
public function loadRoutes (object $ rawData ): void
133
133
{
134
134
if (!empty ($ rawData ->routes )) {
135
+ $ jsonRoutes = json_decode (json_encode ($ rawData ), true )['routes ' ];
135
136
if (!is_array ($ rawData ->routes )) {
136
- foreach (( array ) $ rawData -> routes as $ routeName => $ routeData ) {
137
+ foreach ($ jsonRoutes as $ routeName => $ routeData ) {
137
138
$ this ->_routes [$ routeName ] = new Route ($ routeName , $ routeData );
138
139
}
139
140
} else {
140
- $ this ->_routes ['default ' ] = new Route ('default ' , ( array ) $ rawData -> routes [0 ], true );
141
+ $ this ->_routes ['default ' ] = new Route ('default ' , $ jsonRoutes [0 ], true );
141
142
}
142
143
}
143
144
}
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ class ProcessIsolation
43
43
*/
44
44
private Uidmap $ _uidmap ;
45
45
46
+ public function __construct (array $ data )
47
+ {
48
+ $ this ->parseFromArray ($ data );
49
+ }
50
+
46
51
/**
47
52
* @param Automount $automount
48
53
*/
You can’t perform that action at this time.
0 commit comments