Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  *
  * @param string $assetAssetFile
  * @return boolean
  * @throws AssetRemoveException
  */
 protected function internalRemove($assetAssetFile)
 {
     try {
         $this->s3Client->deleteObject(['Bucket' => $this->bucket, 'Key' => $assetAssetFile]);
     } catch (\Exception $e) {
         throw new AssetRemoveException("An error occurs", 0, $e);
     }
     return true;
 }