-
-
Notifications
You must be signed in to change notification settings - Fork 128
Add support for .symfony.cli.yaml configuration file
#669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
symfony-cli.yaml configuration files (and its variants)
symfony-cli.yaml configuration files (and its variants)symfony-cli.yaml configuration file (and its variants)
local/project/config.go
Outdated
| } else if fileConfig == nil { | ||
| continue | ||
| } | ||
| for _, configFilePrefix := range []string{".symfony.local", "symfony-cli", ".symfony-cli"} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would move this as the outerLoop. This way we can break as soon as we have a a match on one prefix and not let users mix everything together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
|
I don't think having both Now regarding the out-of-the-box naming I'm not against getting rid of |
|
And to be considered: there's the possibility for a And this file is also configuring the behavior of the "Local" web server so some might prefer |
|
Given your arguments and since that The Slack discussion has since disappeared, but people seemed to be pretty okay with it... I'm not sure. |
|
|
|
I don't get why the current name would be "legacy". It configures Symfony for local usage. I'm not opposed, but I don't remember the rationale behind this change. |
|
I think the reason was given in the Slack thread (which expired since), but I don't really remember. The idea with supporting a new name as a configuration file, is to improve the DX. Having a configuration file named according to its tool's name, helps developers to find them and understand what these files are doing. Some examples from the PHP and JS worlds:
But with the Symfony CLI configuration file |
55a2de5 to
d28c1b7
Compare
symfony-cli.yaml configuration file (and its variants).symfony.cli.yaml configuration file
d28c1b7 to
76483de
Compare
|
Deprecation added |
As discussed internally some months ago, I suggested to add support for
.symfony.cli.yamlfile.In 2025, such a name reflects better the purpose of the file, which is to configure the Symfony CLI tool for a given Symfony project. It's more user-friendly rather than
.symfony.local.yaml, which IIRC is something legacy, and may be confusing.The PR adds support for the following files:
.symfony.cli.dist.yaml.symfony.cli.yaml.symfony.cli.override.yaml