Skip to content

fix: use kernel.project_dir parameter for web_dir default value#162

Open
DjLeChuck wants to merge 1 commit intoartgris:masterfrom
DjLeChuck:fix/web_dir-default-value
Open

fix: use kernel.project_dir parameter for web_dir default value#162
DjLeChuck wants to merge 1 commit intoartgris:masterfrom
DjLeChuck:fix/web_dir-default-value

Conversation

@DjLeChuck
Copy link
Contributor

Since Symfony 7.4, the file config/reference.php contains configurations of all bundles : https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration

Using a dynamic value for a default value is not a good thing because the value will change at each container compilation, which results in "useless" modification of the file.

web_dir is using the kernel.project_dir which can be used with % placeholder, the value will be replaced during compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant