From cac09817d2f3353f03ceede88d703673a6ce6c6c Mon Sep 17 00:00:00 2001 From: Christian Lutz Date: Tue, 3 Dec 2024 16:49:14 +0100 Subject: [PATCH] Rename Method in PathPreProcessor --- .../Business/Model/Processor/Pre/PathPreProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ValanticSpryker/Zed/FirstSpiritApi/Business/Model/Processor/Pre/PathPreProcessor.php b/src/ValanticSpryker/Zed/FirstSpiritApi/Business/Model/Processor/Pre/PathPreProcessor.php index 6d6cfed..96082f8 100644 --- a/src/ValanticSpryker/Zed/FirstSpiritApi/Business/Model/Processor/Pre/PathPreProcessor.php +++ b/src/ValanticSpryker/Zed/FirstSpiritApi/Business/Model/Processor/Pre/PathPreProcessor.php @@ -37,7 +37,7 @@ public function process(FirstSpiritApiRequestTransfer $apiRequestTransfer): Firs $path = substr($path, strlen(FirstSpiritApiConfig::ROUTE_PREFIX_FIRST_SPIRIT_API_REST)); } - $apiRequestTransfer->setPath($this->urlEncoding($path)); + $apiRequestTransfer->setPath($this->urlDecodeComma($path)); return $apiRequestTransfer; } @@ -47,7 +47,7 @@ public function process(FirstSpiritApiRequestTransfer $apiRequestTransfer): Firs * * @return string */ - private function urlEncoding(string $path): string + private function urlDecodeComma(string $path): string { return str_replace('%2C', ',', $path); }