Skip to content

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

Merged
merged 2 commits into from
Nov 7, 2014
Merged

Conversation

weaverryan
Copy link
Member

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!


**3.** `Install composer`_ if you don't already have it present on your system:
$ composer require symfony/finder
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, 👍

@weaverryan
Copy link
Member Author

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!

@weaverryan weaverryan merged commit d64fae2 into 2.3 Nov 7, 2014
weaverryan added a commit that referenced this pull request Nov 7, 2014
…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';
Copy link
Member

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)

Copy link
Member Author

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

@wouterj wouterj deleted the component-usage branch November 7, 2014 10:20
weaverryan added a commit that referenced this pull request Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants