예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getUrlForAsset(Asset $asset)
 {
     return $asset->getRelativeUrl();
 }
예제 #2
0
 /**
  * @param Asset $asset
  */
 public function removeAsset(Asset $asset)
 {
     if (strlen($asset->getRelativeUrl()) > 20) {
         $this->s3Client->deleteObject(['Key' => $asset->getRelativeUrl(), 'Bucket' => $this->bucket]);
     }
 }
예제 #3
0
 /**
  * @param Asset $asset
  */
 public function removeAsset(Asset $asset)
 {
     unlink($this->basePath . $asset->getRelativeUrl());
 }