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