# public-dir in composer.json

**URL:** https://forum.shopware.com/t/public-dir-in-composer-json/61398
**Category:** Installation / Getting Started (EN)
**Created:** [29. August 2019 um 08:31 UTC](https://forum.shopware.com/t/public-dir-in-composer-json/61398 "2019-08-29T08:31:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lanea](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lanea](https://forum.shopware.com/u/lanea)
#### Post date: [29. August 2019 um 08:31 UTC](https://forum.shopware.com/t/public-dir-in-composer-json/61398/1 "2019-08-29T08:31:30Z")

</div>

hello,  
is there a way to use native symfony configuration in composer.json  
&nbsp;„extra“: {  
„public-dir“: „public\_html“  
}

also getProjectDir()

instead of hardcoded value public in:

/public/recovery/install/src/ContainerProvider.php  
and also in:  
public/recovery/common/requirements.php

in my server it is public\_html not public, and it will be nice to change this value only in one composer.json file

&nbsp;

---

<div class="post-metadata">

### Author: ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)
#### Post date: [17. Februar 2020 um 13:13 UTC](https://forum.shopware.com/t/public-dir-in-composer-json/61398/2 "2020-02-17T13:13:13Z")

</div>

Hi,

I guess the „public“ used in shopware just refers to the installation of the storefront of shopware. If it is not set, you would not find the storefront of Shopware.  
Are you using the newest version of Shopware right now?

Kind regards,  
Tim
