|
@@ -10,6 +10,8 @@ class OpentalentImageService
|
|
|
public const IMAGE_MD = 'md';
|
|
public const IMAGE_MD = 'md';
|
|
|
public const IMAGE_LG = 'lg';
|
|
public const IMAGE_LG = 'lg';
|
|
|
|
|
|
|
|
|
|
+ private OpentalentApiService $apiService;
|
|
|
|
|
+
|
|
|
public function __construct(
|
|
public function __construct(
|
|
|
OpentalentApiService $apiService = null
|
|
OpentalentApiService $apiService = null
|
|
|
)
|
|
)
|
|
@@ -22,7 +24,10 @@ class OpentalentImageService
|
|
|
throw new \RuntimeException('Invalid $size : ' . $size);
|
|
throw new \RuntimeException('Invalid $size : ' . $size);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $path = $this->apiService->getBody("api/public/files/$fileId/download/$size", ['relativePath' => true]);
|
|
|
|
|
|
|
+ $url = $this->apiService->getApiUri("api/public/files/$fileId/download/$size");
|
|
|
|
|
+
|
|
|
|
|
+ $path = $this->apiService->getBody($url, ['relativePath' => true]);
|
|
|
|
|
+
|
|
|
return $this->apiService->getApiUri($path, true);
|
|
return $this->apiService->getApiUri($path, true);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|