Skip to content
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

Update recipe when using php config? #791

Closed
stephanvierkant opened this issue Sep 1, 2021 · 3 comments
Closed

Update recipe when using php config? #791

stephanvierkant opened this issue Sep 1, 2021 · 3 comments

Comments

@stephanvierkant
Copy link

I'm using PHP config files and running composer recipes:install [package] --force recreates a yaml file instead of updating my PHP config file.

I can imagine that updating PHP config files is more complex, but for me this updating process is completely useless.

If updating PHP files is impossible, there should be another way of finding out the difference. Is there an easy way to have a diff between the old and the new recipe, so I can update my PHP config files manually?

@stof
Copy link
Member

stof commented Sep 1, 2021

Well, flex recipes are not using the PHP config but the YAML one. So if you re-apply the recipe, it is logical that you get the YAML file.
Flex doesn't know about the content of the file belonging to recipes (and not all of them are DI config files btw).

@stephanvierkant
Copy link
Author

I understand why this happens, but since PHP files are the prefered way of configuring Symfony, I think there should be a easier/better way to keep up with the latest recipes when using PHP config files.

@fabpot
Copy link
Member

fabpot commented Sep 1, 2021

We are now using PHP files for configuring Symfony internal services, but YAML is still the default for end-user apps. Closing as there is nothing to do for now.

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

No branches or pull requests

3 participants