Example #1
0
 /**
  * @param AssetInterface $asset
  * @return string
  */
 private function getAssetId(AssetInterface $asset)
 {
     return $asset instanceof AssetCollection ? $asset->getName() : md5(serialize($asset));
 }