Skip to content

Commit

Permalink
Remove absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Oct 8, 2023
1 parent 1e55c45 commit 7aa5e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public function read(Aliases $aliases): ResponseInterface
}

$content = require $mergePlanPath;
$rootAlias = $aliases->get('@root');

Check warning on line 39 in src/Controller/ConfigController.php

View check run for this annotation

Codecov / codecov/patch

src/Controller/ConfigController.php#L38-L39

Added lines #L38 - L39 were not covered by tests

$result = [
'path' => $mergePlanPath,
'path' => substr($mergePlanPath, strlen($rootAlias) + 1),
'data' => $content,
];

Check warning on line 44 in src/Controller/ConfigController.php

View check run for this annotation

Codecov / codecov/patch

src/Controller/ConfigController.php#L41-L44

Added lines #L41 - L44 were not covered by tests

Expand Down

0 comments on commit 7aa5e74

Please sign in to comment.