# Service für backend und für frontend

**URL:** <https://forum.shopware.com/t/service-fur-backend-und-fur-frontend/48655>\
**Category:** Programmierung\
**Created:** [5. Oktober 2017 um 12:56 UTC](https://forum.shopware.com/t/service-fur-backend-und-fur-frontend/48655 "2017-10-05T12:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.shopware.com/u/Maha)\
**Post date:** [5. Oktober 2017 um 12:56 UTC](https://forum.shopware.com/t/service-fur-backend-und-fur-frontend/48655/1 "2017-10-05T12:56:37Z")

</div>

Hallo,

Ich arbeite mit Shopware 5.1.5 und Ich benuze gerade ein service der wurde in Backend und Frontend benuzt:

```
 $newService = **new** ListProductService($coreService, $aboService); \Shopware()-\>Container()-\>set( **'shopware\_storefront.list\_product\_service'** , $newService);

```

Es hat ein Fehler im Backend.

Kann ich eine Service für backend und eine für frontend machen?

Wie mache ich das?

Liebe Grüße,

Maha

&nbsp;
