-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Should we use full Composer package names or Symfony Flex shortcuts? #9693
Comments
I lean slightly towards the longer versions... it avoids issues for some users, and I think people copy-and-paste most of the time anyways. So, that's my vote, but I DO like how cool the aliases look :p |
I think that a good idea is to use Composer format for Symfony versions <4.0 and the Flex format for Symfony versions >=4.0. According to Flex documentation:
I vote for: |
Yesterday we discussed about this on Symfony Slack. Most people (all of them in fact) were against Flex shortcuts. The analogy I used was that these shortcuts are like a lottery: when using it you don't know which package will be installed. I'm now more and more convinced of not using these shortcuts anywhere in the docs. |
Ryan, Wouter and I seem to agree on doing this ... so let's do it! I'm going to prepare the PR right now. |
…eguiluz) This PR was squashed before being merged into the 4.0 branch (closes #9742). Discussion ---------- Don't use Flex shortcuts when installing packages This fixes #9693. I've left some shortcuts on purpose: * in `frontend/encore/installation.rst`: `composer require encore` because Webpack Encore is a bit special and the shortcut is the best way to install it. * in `quick_tour/*.rst` because it shows the features provided by Symfony and shortcuts is one of those features. Readers will learn about them and later they'll decide if they want to use them or not. * in `setup/flex.rst` because they are used on purpose to talk about Flex shortcuts. Commits ------- 2495590 Don't use Flex shortcuts when installing packages
Fixed by #9742. |
Related to #9691 and other similar PRs we've received. Our idea was to always assume that the reader of 3.4+ docs was using Flex, so we use shortcuts everywhere. Should we keep doing that?
My vote is to keep using shortcuts, but let's ask to doc maintainers: @weaverryan @xabbuh @wouterj @HeahDude. Thanks!
The text was updated successfully, but these errors were encountered: