Skip to content

Commit 4f50878

Browse files
Fix routes
1 parent 1062ab6 commit 4f50878

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Config.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/Config/Application/ProcessManagement/ProcessIsolation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)