# Composer DocPath

**URL:** https://forum.shopware.com/t/composer-docpath/60543
**Category:** Plugins
**Created:** [19. Juli 2019 um 09:41 UTC](https://forum.shopware.com/t/composer-docpath/60543 "2019-07-19T09:41:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gwen](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gwen](https://forum.shopware.com/u/gwen)
#### Post date: [19. Juli 2019 um 09:41 UTC](https://forum.shopware.com/t/composer-docpath/60543/1 "2019-07-19T09:41:43Z")

</div>

Hallo liebe Comunity,

&nbsp;

wie kann ich den Aufruf Shopware()-\>DocPath() . “files/documents/” . $getDocument[“hash”] . “.pdf”;

wie im &nbsp;[https://issues.shopware.com/issues/SW-22315](https://issues.shopware.com/issues/SW-22315)&nbsp;beschrieben, auf&nbsp;kernel.root\_dir ändern, damit auch der Composer die Dokumente unter&nbsp;files/documents findet?

Diie&nbsp;Variable Shopware()-\>Container()-\>getParameter(‘shopware.app.rootdir’).$getDocument[“hash”].".pdf"

verursacht bei mir folgenden Fehler&nbsp;

```
Could not load file (customer email invoice - mail attachment): /www/htdocs/xxxxx/shopware/1a61a818a3cf6d590fb1375d682b59c0.pdf in engine/Shopware/Plugins/Community/Frontend/myPlugin/Bootstrap.php on line 323

```

Ich fand leider nichts, was mir weiter hilft.

&nbsp;

liebe Grüße

gwen
