Skip to content

Remove horizontal scrollbar and other fixes #4909

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 5 commits into from
Mar 20, 2015
Merged

Remove horizontal scrollbar and other fixes #4909

merged 5 commits into from
Mar 20, 2015

Conversation

ifdattic
Copy link
Contributor

Q A
Doc fix? yes
New docs? no
Applies to 2.3
Fixed tickets

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |
| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |
| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |
@@ -40,7 +40,7 @@ If you know you need a specific version of the library, add that to the command:

.. code-block:: bash

$ composer require symfony/finder
$ composer require symfony/finder:2.6.2
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to add a space between package and version instead of a colon.

@@ -40,7 +40,7 @@ If you know you need a specific version of the library, add that to the command:

.. code-block:: bash

$ composer require symfony/finder
$ composer require symfony/finder 2.6.2
Copy link
Member

Choose a reason for hiding this comment

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

-1. You should not use an exact match in your composer constraint (it means composer will never give you bug fixes until you ask for them explicitly). And Composer is smart enough to guess the best constraint based on the existing versions of the package. So most of the time, the best solution is to omit the version constraint entirely

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then in my opinion this whole block should be removed, as the text for example is about installing specific version of the library while providing the same code example as the one before. And without the version composer will install the best version not the specific one.

Copy link
Member

Choose a reason for hiding this comment

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

It seems that @ifdattic is right because the example is specifically about using exact dependency versions.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with removing this section. wdyt @xabbuh @weaverryan

Copy link
Member

Choose a reason for hiding this comment

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

I agree about removing it. This page is not about documenting all features of composer require, and specifying an exact match requirement is a mistake most of the time (you would want at least 2.6.* to allow getting bug fixes and security patches when running a composer update), so we should not show such example IMO

Copy link
Member

Choose a reason for hiding this comment

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

👍 for removing

Copy link
Member

Choose a reason for hiding this comment

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

ping @ifdattic can you please remvoe this section?

@javiereguiluz
Copy link
Member

I really think that this PR can be considered finished and ready to be merged.

@weaverryan weaverryan merged commit 11422db into symfony:2.3 Mar 20, 2015
weaverryan added a commit that referenced this pull request Mar 20, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Remove horizontal scrollbar and other fixes

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

11422db Update using_components.rst
9c1c071 Update using_components.rst
2e5c054 Remove horizontal scrollbar, fix command with version
759ad10 Remove horizontal scrollbar
d47f5f7 Remove horizontal scrollbar
@weaverryan
Copy link
Member

Thanks @ifdattic! And you helped me notice a bug in this code (that you didn't make, but the PR helped me spot it!) - sha: e5c28c8

Cheers!

@ifdattic
Copy link
Contributor Author

@weaverryan Always glad to help!
It's a good day when it's not you who introduced the bug :D nice catch!

@ifdattic ifdattic deleted the patch-17 branch March 20, 2015 10:08
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.

6 participants