-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Updating component usage to use composer require #4425
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
Conversation
|
||
**3.** `Install composer`_ if you don't already have it present on your system: | ||
$ composer require symfony/finder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we explain how to require a certain version of a package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, 👍
Thanks guys. I've kept the symfony/symfony part, since we were mixed on that. But I don't really care one way or another - I certainly don't think it's too important. I also added an example of getting a specific version of a library, but after the example I had. In most cases, if you're installing a library "fresh", then you just want the latest version. So that's the use-case I want to cater to (like most other package management systems, where you don't often specify the version). Cheers! |
…rryan) This PR was merged into the 2.3 branch. Discussion ---------- Updating component usage to use composer require | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | n/a Hi guys! This shows using the new `composer require` command instead of manually updating `composer.json`. It shortens and simplifies things quite a bit 😀 Thanks! Commits ------- d64fae2 Adding details about a specific version 8a50c9c Updating component usage to use composer require
|
||
// update this to the path to the "vendor/" directory, relative to this file | ||
require_once '../vendor/autoload.php'; | ||
require_once __DIR__.'../vendor/autoload.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing /
(__DIR__
does not have a trailing directory separator)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thanks, fixed at sha: ddd4a3b
Hi guys!
This shows using the new
composer require
command instead of manually updatingcomposer.json
. It shortens and simplifies things quite a bit 😀Thanks!