Example #1
0
 /**
  * Get the full url to the original file.
  *
  * @param MediaInterface $media
  *
  * @return string
  */
 public function getUrl(MediaInterface $media)
 {
     return $this->urlGenerator->generate($media->getReference());
 }
Example #2
0
 /**
  * @param string $reference
  *
  * @return string
  */
 public function getUrlByReference($reference)
 {
     return $this->urlGenerator->generate($reference);
 }