minor #14400 [Maintenance] extra.symfony.require configuration introduced (Rafikooo)

This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

I didn't find this option documented in the Symfony docs, just a little info here:
https://symfony.com/doc/current/setup/upgrade_major.html#2-update-to-the-new-major-version-via-composer
and some info quoted from Symfony Cast - upgrade Symfony tutorial:
"This is a performance optimization from Flex: it basically makes sure that Flex only considers Symfony packages that match this version".
It looks like it may save some time working with the `composer update` command

Commits
-------

85482f5049 [Maintenance] extra.symfony.require configuration introduced
This commit is contained in:
Mateusz Zalewski 2022-10-31 15:17:33 +01:00 committed by GitHub
commit 9c7fa36336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,8 @@
},
"extra": {
"symfony": {
"allow-contrib": false
"allow-contrib": false,
"require": "^5.4 || ^6.0"
}
},
"autoload": {