From f5bbe6e5a19a52e0bfb4bbea0a5c289d15bd3dcf Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Fri, 22 Mar 2024 23:42:52 +0100 Subject: [PATCH] Update variable scope to store --- Service/UriUtils.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Service/UriUtils.php b/Service/UriUtils.php index ee214f4..79240ff 100644 --- a/Service/UriUtils.php +++ b/Service/UriUtils.php @@ -21,14 +21,14 @@ class UriUtils { public function __construct(private PathResolver $pathResolver) {} - public function replaceScopeCode(string $url, StoreInterface $scope): string + public function replaceScopeCode(string $url, StoreInterface $store): string { - return $this->replaceLeadingPath($scope->getCode(), $this->pathResolver->resolve($scope), $url); + return $this->replaceLeadingPath($store->getCode(), $this->pathResolver->resolve($store), $url); } - public function replacePathCode(string $url, StoreInterface $scope): string + public function replacePathCode(string $url, StoreInterface $store): string { - return $this->replaceLeadingPath($this->pathResolver->resolve($scope), $scope->getCode(), $url); + return $this->replaceLeadingPath($this->pathResolver->resolve($store), $store->getCode(), $url); } private function replaceLeadingPath(string $search, string $replace, string $uri): string