@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function generateUrl(FileInterface $file, string $basePath): string |
| 27 | 27 | { |
| 28 | - $key = $basePath . '/' . $file->getAssetId() . '.' . $file->getFileExtension(); |
|
| 29 | - return 'https://storage.googleapis.com/' . $this->bucket->name() . '/' . $key; |
|
| 28 | + $key = $basePath.'/'.$file->getAssetId().'.'.$file->getFileExtension(); |
|
| 29 | + return 'https://storage.googleapis.com/'.$this->bucket->name().'/'.$key; |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | \ No newline at end of file |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public static function createGCSClient(ContainerInterface $container, string $keyFilePath, string $projectId = ''): StorageClient |
| 18 | 18 | { |
| 19 | - $path = $container->getParameter('kernel.project_dir') . '/config/gcs/' . $keyFilePath; |
|
| 19 | + $path = $container->getParameter('kernel.project_dir').'/config/gcs/'.$keyFilePath; |
|
| 20 | 20 | return new StorageClient([ |
| 21 | 21 | 'keyFilePath' => $path, |
| 22 | 22 | ]); |