| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function generateUrl(FileInterface $file, string $basePath): string |
||
| 38 | { |
||
| 39 | $key = ($this->awsPrefix ? $this->awsPrefix.DIRECTORY_SEPARATOR : null). |
||
| 40 | $basePath. |
||
| 41 | DIRECTORY_SEPARATOR. |
||
| 42 | $file->getAssetId(). |
||
| 43 | '.'. |
||
| 44 | $file->getFileExtension() |
||
| 45 | ; |
||
| 46 | |||
| 47 | return $this->awsClient->getObjectUrl($this->awsBucket, $key); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |