-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Clarification needed on upgrade instructions #9230
Comments
What kind of crash did you experience? Did you update to Symfony 3 or 4? |
I'm closing this because of the lack of feedback. It's strange that the error happens when using INI params with Symfony 2 because, even if INI config files are discouraged since a long ago, the latest Symfony version includes the If you have more details about how to reproduce the bug, please reopen this issue. Thanks! |
Hi! If I don't have an yml.dist or a ini.dist, which is where we started and was confusing enough:
This is if I create a blank parameters.ini.dist
If I copy the contents of my ini file to ini.dist:
Now, I don't know if this became an issue before 2.8 (we were only going from 2.3 to 2.8 for now) because we only just started using composer to manage Symfony and its deps (previously we just "vendor'd" the Symfony standard distribution) For the record, we like using .ini files because of our build management tool which reads\writes to them between deployments\environments (and it's much simpler using simple ini across teams and tools then inflecting the oddities of yaml on everything). |
@javiereguiluz Is that response fine here? Will you reopen this or should I create a new issue? |
There are several issues here:
If you still can't make it work, use any of the support services provided to the Symfony community: https://symfony.com/support Thanks! |
Hi @javiereguiluz thank you for those tips!
...is what I what I was about to say, but then I recalled. Incenteev is actually the problem here. It has no support for ini files! (See Incenteev/ParameterHandler#114) I'd think the "Symfony way" wouldn't include randomly abandoning config formats. And I'm not sure what Incenteev's issue is considering Symfony has excellent libs for handling config formats. So, documentation-wise, ... i'm not sure. Thoughts? |
For the record, I'm not sure what role that code is supposed to fill, considering symfony config can already merge & overide configuration files and settings. What am I missing? http://symfony.com/doc/current/components/config/definition.html#processing-configuration-values |
That's the same code that is used by the full stack framework under the hood. This section just explains how one would use the Config component standalone. |
Hi @xabbuh . That makes sense. Considering how useful, complete, and flexible it is, why isn't that used for this parameter handling... "doodad"? What is it doing that Symfony isn't/can't/won't? Especially considering that it would not appear to be feature complete? |
Parameters are just values. They don't have any semantic in itself. Their meaning is derived from where you use them. Not sure what you would want to change about that. Maybe the discussion that happened in symfony/symfony#26713 is of interest for you. |
Hello,
If the environment being upgraded (from <3) is using parameters.ini (or .xml) the composer update process will crash hard during post-update-cmd event's Incenteev\ParameterHandler\ScriptHandler::buildParameters.
Some guidance is required indicating what to do about this. Whether its to disable post-update-cmd event or to remove Incenteev's ParameterHandler, or etc
The text was updated successfully, but these errors were encountered: