From 8c05e9c30545f5ee6bb2858a0895e2d98d8c1a99 Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Fri, 22 Nov 2024 22:31:55 +0100 Subject: [PATCH] add integration description --- www/src/Controller/Integration.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/src/Controller/Integration.php b/www/src/Controller/Integration.php index 2e97a05..e20c8ef 100644 --- a/www/src/Controller/Integration.php +++ b/www/src/Controller/Integration.php @@ -53,6 +53,7 @@ public function showType(string $type): mixed $dtoFile = __DIR__ . '/../../resources/template/integration/' . $type . '_dto.txt'; $integrationFile = __DIR__ . '/../../resources/template/integration/' . $type . '_integration.txt'; + $descriptionFile = __DIR__ . '/../../resources/template/integration/' . $type . '_description.html'; if (!is_file($dtoFile) || !is_file($integrationFile)) { throw new BadRequestException('No integration available for the provided type'); @@ -64,6 +65,7 @@ public function showType(string $type): mixed 'parameters' => ['type' => $type], 'dto' => file_get_contents($dtoFile), 'integration' => file_get_contents($integrationFile), + 'description' => is_file($descriptionFile) ? file_get_contents($descriptionFile) : '', 'type' => $type, 'typeName' => TypeName::getDisplayName($type), ];