Symfony-docs: extra.symfony-public-dir is gone, right?

Created on 28 Nov 2017  路  8Comments  路  Source: symfony/symfony-docs

In 4.0+, it's config.public-dir, is it not?

https://symfony.com/doc/4.0/configuration/override_dir_structure.html#override-web-dir

And how does this work with 3.4+Flex?

hasPR

Most helpful comment

All 8 comments

That is correct:

{
    "extra": {
        "symfony-public-dir": "my_awesome_new_public_dir"
    }
}

For Flex I am unsure if that is changeable: https://github.com/symfony/flex/commit/6bbb7e5872e40c480bc5bfc8c161847398053c67/src/Flex.php#diff-46b78198ae7ea525f04268205dd782c3R262

Maybe @fabpot or @javiereguiluz might give a better answer to this. If Flex's public directory is customisable, we will of course create documentation for this.

Where is the code that reads that value, @ricknox, do you know? I didn't find it anywhere. Just the new Flex thing, which appears to be overridable via config in composer.json.

@nicolas-grekas can you shed any light on this?

@dzuelke This issue has been given some love in #8732 which is part of #8754. It has been changed from symfony-web-dir to symfony-public-dir. But that applies for the 4.0 version, which indeed includes Flex.

But is it really extra.symfony-public-dir, @ricknox? I can't find any reference to it anywhere in the sources. It looks like it's just extra.public-dir now in Flex!? /cc @nicolas-grekas

I added "public-dir": "web" to the "extra" config in composer.json and it works with symfony4+flex.

see also symfony/symfony#25677

Fixed by #9085.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javiereguiluz picture javiereguiluz  路  5Comments

wouterj picture wouterj  路  4Comments

Kwadz picture Kwadz  路  3Comments

ManInTheBox picture ManInTheBox  路  4Comments

Nyholm picture Nyholm  路  4Comments