Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  *
  * @param string $assetFile
  * @param string $localFile
  * @return string
  * @throws AssetPutException
  */
 protected function internalGet($assetFile, $localFile)
 {
     try {
         $this->s3Client->getObject(['Bucket' => $this->bucket, 'Key' => $assetFile, 'SaveAs' => $localFile]);
     } catch (\Exception $e) {
         throw new AssetPutException("An error occurs", 0, $e);
     }
     return $localFile;
 }