From 7aa5e74c7b6725d129a3c441d4aeb4afeb7b06b8 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 8 Oct 2023 14:04:16 +0300 Subject: [PATCH] Remove absolute path --- src/Controller/ConfigController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/ConfigController.php b/src/Controller/ConfigController.php index 49f3c38..cfe1407 100644 --- a/src/Controller/ConfigController.php +++ b/src/Controller/ConfigController.php @@ -36,9 +36,10 @@ public function read(Aliases $aliases): ResponseInterface } $content = require $mergePlanPath; + $rootAlias = $aliases->get('@root'); $result = [ - 'path' => $mergePlanPath, + 'path' => substr($mergePlanPath, strlen($rootAlias) + 1), 'data' => $content, ];