# Ab Shopware 5.1 "shopware\_media.media\_service", wie vorher ?

**URL:** <https://forum.shopware.com/t/ab-shopware-5-1-shopware-media-media-service-wie-vorher/35170>\
**Category:** Programmierung\
**Created:** [10. März 2016 um 08:34 UTC](https://forum.shopware.com/t/ab-shopware-5-1-shopware-media-media-service-wie-vorher/35170 "2016-03-10T08:34:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheppard](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sheppard](https://forum.shopware.com/u/Sheppard)\
**Post date:** [10. März 2016 um 08:34 UTC](https://forum.shopware.com/t/ab-shopware-5-1-shopware-media-media-service-wie-vorher/35170/1 "2016-03-10T08:34:24Z")

</div>

Hey Community,

Ab Shopware 5.1 gibt es ja den&nbsp;„shopware\_media.media\_service“ um einen Pfad in eine „qualified“ URL zu konvertieren. jedoch wie konnte man es vor 5.1 machen ?

Oder anders gefragt ist es möglich den Mediaservice auch in einem Backend Controller zu verwenden ?

Gruß

Sheppard

---

<div class="post-metadata">

**Author:** ![Heiner\_Lohaus](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Heiner\_Lohaus](https://forum.shopware.com/u/Heiner_Lohaus)\
**Post date:** [10. März 2016 um 09:46 UTC](https://forum.shopware.com/t/ab-shopware-5-1-shopware-media-media-service-wie-vorher/35170/2 "2016-03-10T09:46:01Z")

</div>

Hi Sheppard,

mit dem Request-Objekt solltest du den Pfad auch in Shopware 4/5 erzeugen können: &nbsp;[shopware/MediaService.php at 5.1 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.1/engine/Shopware/Bundle/MediaBundle/MediaService.php#L215)

Der steht auch im Backend zur Verfügung.

Gruß Heiner
