From 0c559672a169b4197b32cc764b48521ee37d0451 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 27 Apr 2020 19:56:35 +0200 Subject: [PATCH] application install with less fixed values and dynamic namespaces --- Controller/ApiController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 53a925a..b934d41 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -309,7 +309,11 @@ final class ApiController extends Controller return; } - $appManager->install(__DIR__ . '/../../../' . $app, __DIR__ . '/../../../' . $request->getData('appDest') ?? ''); + $appManager->install( + __DIR__ . '/../../../' . $app, + __DIR__ . '/../../../' . $request->getData('appDest') ?? '', + $request->getData('theme') ?? 'Default' + ); $this->apiActivateTheme($request, $response); }