@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function generateUrl(FileInterface $file, string $basePath): string |
19 | 19 | { |
20 | - $key = $basePath . DIRECTORY_SEPARATOR . $file->getAssetId() . '.' . $file->getFileExtension(); |
|
20 | + $key = $basePath.DIRECTORY_SEPARATOR.$file->getAssetId().'.'.$file->getFileExtension(); |
|
21 | 21 | $image = $this->bucket->object($key); |
22 | 22 | return $image->signedUrl(new \DateTime('+1 hour')); |
23 | 23 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public static function createGCSClient(ContainerInterface $container, string $keyFilePath, string $projectId = ''): StorageClient |
12 | 12 | { |
13 | - $path = $container->getParameter('kernel.project_dir') . '/config/gcs/' . $keyFilePath; |
|
13 | + $path = $container->getParameter('kernel.project_dir').'/config/gcs/'.$keyFilePath; |
|
14 | 14 | return new StorageClient([ |
15 | 15 | 'keyFilePath' => $path, |
16 | 16 | ]); |