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