# Service nicht auffindbar

**URL:** <https://forum.shopware.com/t/service-nicht-auffindbar/62762>\
**Category:** Programmierung\
**Created:** [3. November 2019 um 14:25 UTC](https://forum.shopware.com/t/service-nicht-auffindbar/62762 "2019-11-03T14:25:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niklaswitthuhn](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Niklaswitthuhn](https://forum.shopware.com/u/Niklaswitthuhn)\
**Post date:** [3. November 2019 um 14:25 UTC](https://forum.shopware.com/t/service-nicht-auffindbar/62762/1 "2019-11-03T14:25:25Z")

</div>

Moin Leute,&nbsp;

bin seit kurzem an einem Plugin dran. Gemaess Dokumentation habe ich einen Service erstellt in Pluginname/Resources/services.xml

services&nbsp;service class=“DsnwComment\Components\Dbal\CommentActionComponent” id=“dsnw\_comment.comment\_action\_component” argument type=“service” id=“dbal\_connection”/&nbsp;/service&nbsp;/services

jedoch wenn ich&nbsp;

```
 $this-\>container-\>get('dsnw\_comment.comment\_action\_component');

```

ausfuehre, commt folgende Fehlermeldung:

**Fatal error** : Uncaught Error: Call to a member function get() on null in bla bla bla.

&nbsp;

Freue mich auf eure Hilfe, das Problem wird wahrscheinlich ein sehr banales sein, ich hatte mich bisher an der Shopware Developer Dokumentation orientiert

&nbsp;

---

<div class="post-metadata">

**Author:** ![Niklaswitthuhn](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Niklaswitthuhn](https://forum.shopware.com/u/Niklaswitthuhn)\
**Post date:** [3. November 2019 um 15:11 UTC](https://forum.shopware.com/t/service-nicht-auffindbar/62762/2 "2019-11-03T15:11:53Z")

</div>

Fehler gefunden, ich habe dem subscriber service das nicht als argument mitgegeben.
