Skip to content

Commit 874c63a

Browse files
committed
feat: daemon selection support during ExApp installation from UI
Signed-off-by: Andrey Borysenko <[email protected]>
1 parent 2e4fb13 commit 874c63a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

appinfo/routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
// ExApps actions
3535
['name' => 'ExAppsPage#listCategories', 'url' => '/apps/categories', 'verb' => 'GET' , 'root' => ''],
3636
['name' => 'ExAppsPage#listApps', 'url' => '/apps/list', 'verb' => 'GET' , 'root' => ''],
37-
['name' => 'ExAppsPage#enableApp', 'url' => '/apps/enable/{appId}', 'verb' => 'GET' , 'root' => ''],
38-
['name' => 'ExAppsPage#enableApp', 'url' => '/apps/enable/{appId}', 'verb' => 'POST' , 'root' => ''],
37+
['name' => 'ExAppsPage#enableApp', 'url' => '/apps/enable/{appId}/{daemonId}', 'verb' => 'GET' , 'root' => ''],
38+
['name' => 'ExAppsPage#enableApp', 'url' => '/apps/enable/{appId}/{daemonId}', 'verb' => 'POST' , 'root' => ''],
3939
['name' => 'ExAppsPage#getAppStatus', 'url' => '/apps/status/{appId}', 'verb' => 'GET' , 'root' => ''],
4040
['name' => 'ExAppsPage#getAppLogs', 'url' => '/apps/logs/{appId}', 'verb' => 'GET' , 'root' => ''],
4141
['name' => 'ExAppsPage#getAppDeployOptions', 'url' => '/apps/deploy-options/{appId}', 'verb' => 'GET' , 'root' => ''],

lib/Controller/ExAppsPageController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private function buildLocalAppsList(array $apps, array $exApps): array {
314314
}
315315

316316
#[PasswordConfirmationRequired]
317-
public function enableApp(string $appId, array $deployOptions = []): JSONResponse {
317+
public function enableApp(string $appId, string $daemonId, array $deployOptions = []): JSONResponse {
318318
$updateRequired = false;
319319
$exApp = $this->exAppService->getExApp($appId);
320320

@@ -341,6 +341,7 @@ public function enableApp(string $appId, array $deployOptions = []): JSONRespons
341341
'app_api:app:register',
342342
'--silent',
343343
$appId,
344+
$daemonId,
344345
],
345346
$envArgs,
346347
$mountArgs

0 commit comments

Comments
 (0)