8000 Updating component usage to use composer require by weaverryan · Pull Request #4425 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding details about a specific version
  • Loading branch information
weaverryan committed Nov 7, 2014
commit d64fae2aac7566668673b1c648b54936f6535c28
8 changes: 7 additions & 1 deletion components/using_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Using the Finder Component
$ 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, 👍


The name ``symfony/finder`` is written at the top of the documentation for
whatever component you want.
whatever component you want.

.. tip::

Expand All @@ -36,6 +36,12 @@ whatever component you want.
a ``composer.phar`` file in your directory. In that case, no worries!
Just run ``php composer.phar require symfony/finder``.

If you know you need a specific version of the library, add that to the command:

.. code-block:: bash

$ composer require symfony/finder:~2.3

**3.** Write your code!

Once Composer has downloaded the component(s), all you need to do is include
Expand Down
0