8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
6305e83
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Time flies!
Sorry, something went wrong.
Are we sure this is the case? (I'm on Windows atm, so I cannot test it)
If I'm reading https://github.com/symfony/skeleton/blob/master/composer.json correctly, the dependencies are actually marked as * and the extra.symfony.require is used to limit the scope to a specific minor version. That would mean you only need to update that value?
*
extra.symfony.require
Yes ... that's how I've seen it in modern Symfony apps ... but the reader of this document can use any method actually, especially if they are upgrading from very old Symfony versions.
In practice, when you compose require symfony/something, it will put the X.X.* version constraint in your composer.json file. So... I'm trying to show an example that will look "like" the user's composer.json file. But technically speaking, you're totally right: if they had ^4.0 everywhere, they could upgrade/control the Symfony versions simply by changing extra.symfony.require. But that's not how things currently will look in real apps.
compose require symfony/something
X.X.*
^4.0
I talked with Nicolas about this, and I think it (the usage the X.X.* format by composer require) was more-or-less an "accidental" by-product of the extra.symfony.require feature
composer require