symfony-docs icon indicating copy to clipboard operation
symfony-docs copied to clipboard

Should `extra.symfony.require` have a dedicated section?

Open alexislefebvre opened this issue 1 year ago • 1 comments

extra.symfony.require is useful to lock dependencies to a LTS release, like 6.4.*:

  • https://symfonycasts.com/screencast/symfony5-upgrade/flex-symfony-require#extra-symfony-require
  • https://stackoverflow.com/questions/59166939/how-composer-extra-symfony-require-restriction-is-enforced

Yet it's mentioned only once in the doc about the bundles: https://symfony.com/doc/current/bundles/best_practices.html#require-a-specific-symfony-version


Is this feature still actively supported? Update: this parameter is added when running symfony new my_project_directory --version=lts so it looks like this feature is still supported.

Is it worth opening a PR to explain how to use it?

alexislefebvre avatar Sep 04 '24 11:09 alexislefebvre

I'd never heard of it before but I think that if it has found its place on SymfonyCasts it can also have a place in the documentation.

Thanks for this discovery, in future it will save me from doing inconvenient things in the require section of the composer.json file.

MrYamous avatar Sep 05 '24 07:09 MrYamous